Skip to content

jkenzer/pickup-lines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pickup Lines API

This is a very simple express app that returns a single pickup line randomly selected from the all-lines.json file. The shape of the object is:

interface line {
  line: string;
  category: string[];
}

Use Case

I have an Apple Shortcut set up to text my wife one of these pickup lines every day at 3:35 PM. Here's how it's configured:

  • Get the contents of the api. I have it hosted on Glitch.com
  • Get Value for line in Contents of URL
  • Send Dictionary Value to [my wife's contact in my phone]

Credit

The pickup lines were pulled from https://pickup-lines.net/wp-json/wp/v2/posts/.

There is a script in the script folder to convert this RSS format to the shape above. I have removed the Dirty Lines and the Mean Lines. Feel free to customize for your need.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published