Scraping from a JSON help (novice scraper run into issues)

ad9051

Registered Member
Joined
Nov 7, 2012
Messages
57
Reaction score
3
Hello I am trying to scrape the contents from a website, the data I require from the webpage however is hidden in a JSON. I have tried loading the JSON but it returns 10 random users, where as the website contains 1400 total users . Is it still possible to scrape data from JSON's ?

note. this scraping isn't of personal details, no emails, no names or anything like that (just in case anyone questions the morality of the scraping)

Any help or comments would be greatly appreciated.

Kind regards

Alan
 
If you are not afraid of a little server side Javascript take a look at Substack's "json-scrape" package. I use this a lot and it works very well.

Code:
https://github.com/substack/json-scrape
 
Thanks for the quick reply Mr Blue, Is this the only way to scrape from JSON or is there other ways? I am hoping to create a script to scrape the website every x mins on repeat so using a programme to manually scrape the JSON is far from ideal.

Many thanks

Alan
 
There are many ways to skin a cat :) Do you have a platform and language preference? Automating your script to run can easily be achieved using cron jobs in Linux. Feel free to pm me the url of the site in question. I'll gladly take a look and give you my opinion.

Cheers!

Thanks for the quick reply Mr Blue, Is this the only way to scrape from JSON or is there other ways? I am hoping to create a script to scrape the website every x mins on repeat so using a programme to manually scrape the JSON is far from ideal.

Many thanks

Alan
 
Thanks Mr Blue, Ill send you a DM :)

There are many ways to skin a cat :) Do you have a platform and language preference? Automating your script to run can easily be achieved using cron jobs in Linux. Feel free to pm me the url of the site in question. I'll gladly take a look and give you my opinion.

Cheers!
 
Thanks Mr Blue, Ill send you a DM :)

Ahh apparently I need to have 15 posts on the forum before I can DM ppl. Not sure if you can dm me? If you can skype chat or email you, if that is agreeable with you. Cheers Alan
 
PM sent. Add me to Skype.

Cheers!

Ahh apparently I need to have 15 posts on the forum before I can DM ppl. Not sure if you can dm me? If you can skype chat or email you, if that is agreeable with you. Cheers Alan
 
Back
Top