Created
June 19, 2016 14:45
-
-
Save sarathlal-old/21fbe29a0fb444d0f52b61a121229e33 to your computer and use it in GitHub Desktop.
Copy sequential web pages and save as file using curl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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