Skip to content

Instantly share code, notes, and snippets.

@sarathlal-old
Created June 19, 2016 14:45
Show Gist options
  • Save sarathlal-old/21fbe29a0fb444d0f52b61a121229e33 to your computer and use it in GitHub Desktop.
Save sarathlal-old/21fbe29a0fb444d0f52b61a121229e33 to your computer and use it in GitHub Desktop.
Copy sequential web pages and save as file using curl
#!/bin/bash
for i in {3142..3150}
do
curl -A 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12' -o $i.html http://targetsite.com/posts/$i/
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment