Building a bot (so-to-speak).

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mikeashfield
Forum Contributor
Posts: 159
Joined: Sat Oct 22, 2011 10:50 am

Building a bot (so-to-speak).

Post by mikeashfield »

Is it possible to create a one-time application that would loop through all numbers between 100,000 and 999,999 while sending a JSON request as a URL (not sure how JSON works) www.mydomain.com/16835057.json and if there is data in the response, such as operational_building, operational_floor ect and store that information in a MySQL DB (some fields are returned like this if not needed (eg, not US): operational_state: "",

thanks in advance :)
User avatar
novice4eva
Forum Contributor
Posts: 327
Joined: Thu Mar 29, 2007 3:48 am
Location: Nepal

Re: Building a bot (so-to-speak).

Post by novice4eva »

I think you can use ajax in loop but then it will create lots of requests and some of them will be denied for sure(probably can try synchronous request). Other would be to make a curl request.

Regards,
Dee
Post Reply