Skip to content

Instantly share code, notes, and snippets.

@leogdion
Last active August 1, 2017 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leogdion/361b027ae1064c8749074ae3274b47dc to your computer and use it in GitHub Desktop.
Save leogdion/361b027ae1064c8749074ae3274b47dc to your computer and use it in GitHub Desktop.
export-script.sh
#curl -s http://javascriptweekly.com/issues/$1 | pup '.issue-html table div > a[title] json{}' | jq '.[]' | jq -r '.text + " " + .href'
#curl -s http://iosdevweekly.com/issues/$1 | pup 'section .item h3.item__title a json{}' | jq '.[]' | jq -r '.text + " " + .href'
#curl -s http://www.echojs.com | pup 'article[data-news-id] a[rel] json{}' | jq '.[]' | jq -r '.text + " " + .href'
#curl -s https://swiftnews.curated.co/issues/$1 | pup 'section .item h3.item__title a json{}' | jq '.[]' | jq -r '.text + " " + .href'
#curl -s https://swiftnews.curated.co/issues/$1 | pup 'section .item h3.item__title a json{}' | jq '.[]' | jq -r '.text + " " + .href'
#curl -s http://ios-goodies.com | pup '.post .body-text li json{}' | jq '.[]' | jq -r '.children[0].text + " by " + .children[1].text + " " + .children[0].href'
curl -s https://mobilewebweekly.com/issues/$1 | pup '.issue-html table table table table td > a[title] json{}' | jq '.[]' | jq -r '.text + " http://" + .title'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment