I need to scrape a website for all sites and append an Paramater, e.g.

www.theSite.com/allpages?myPara=us

Now what I got is wget --recursive to get all sites, but that doesn't append the parameter and the content is useless. I need to do this in a 2nd step:

curl http://theSite.com/allpages?myPara=us | grep -c MyString

So in essence I am looking for a particular String in a entire Website to which I got only access via HTTP.

link|improve this question

50% accept rate
feedback

1 Answer

I managed now by using brackets and curl like this:

curl http://www.mySite.com/category1/category2/{+cat1,+cat2,+cat3,+cat4,+cat4}?myPara=us | grep -c myString

Of course this won't get me all sites, but one could work out a script with wget, regex, collections and loops.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.