Dec 27 2009
Mini Bots PHP Class
LAST UPDATE 30/08/2010 This php class is a growing collection of small spiders that go out on the web and make some small usefull works. I’ve decided to raise it to the top level menu beacuse I think it’s a nice project, and I will explain the functions in the blog.
Since this class could violate the rules of other sites, please, use this class properly, be correct: I mean, bots can cause problems to server, and can be used to steal contents, so use those scripts with attention (that is to say “not too much”). This class was build for educational purpose, so check the rules of the called services to decide if you can use those scripts in your commercial products, I don’t know.
Actually the mini bots can do those things:
Version 1.9 includes:
- search Google and get the spelling suggest (DEMO)
- search Google and retrieve the meteo information for a place
- search Bank Of Italy service to get exchange rates for a specified currency
- search GeoIpTool to retrieve geographical information from a specified IP address (DEMO)
- contact any mail server to validate email address through smtp protocol (DEMO)
- call tinyurl.com to get a tiny url of a specified long url (DEMO)
- decode any small url to the original long url (DEMO)
- url checker to see if a url exists
- get url infos to get data about a page (title, description, favicon, images) (DEMO)
- retrieves all the text from a url
- convert a url to a pdf and save it to a local file
- get twitter users info from web page and from Twitter’s API
- set twitter status
- get twitter statuses update list
- get video list uploaded by a user in Youtube (DEMO)
- get first page of url images from Google Images (DEMO)
- change facebook status
- post to facebook fan page wall
- parsing rss flickr feed of a user (DEMO)
- sending push alerts to iPhone (DEMO)
- google suggest keywords service (DEMO)
- find definitions on Wikipedia (DEMO)
DOWNLOAD:
Here is the DOWNLOAD PHP source and the DEMO INDEX.
HISTORY:
ver.1.9, wikipedia definitions
ver.1.8, pushMeTo, google suggest
ver.1.7, various fixes and Flickr Feed parser
ver.1.6a, post to facebook fan page wall
ver.1.6, add twitterInfoApi (like twitterInfo but faster), add twitterSetStatus, add twitterGetStatusList, add youtubeGetVideos, googleGetImages
ver.1.5, modified twitterInfo, fixed private functions, addedd facebook status method.
ver.1.4, added twitterInfo, wepage2txt and url2pdf methods.
ver.1.3, added url_exists and getUrlInfo methods.

January 6th, 2010 7:48 pm
love this class thx
January 7th, 2010 7:19 am
Great class , thanks
January 12th, 2010 8:45 pm
Great work dude – way to go.
January 14th, 2010 2:01 pm
Social comments and analytics for this post…
This post was mentioned on Twitter by deliciobot: #DelicioBot : Mini Bots PHP Class http://bit.ly/5sfw5Q...
February 27th, 2010 1:46 am
Utilissimo!!!
Puoi usare l’exchange rate di Google invece di quello della banca d’Italia, che te ne pare?
March 11th, 2010 8:27 pm
Just landed on this place via Google seek. I love it. This post change my percept and I am taking the RSS feeds. Cheers Up.
April 1st, 2010 6:11 pm
complimenti però sappiate che Google non gradisce che si facciano query nei suoi servizi che non prevedono API, potrebbe penalizzare un sito che serve i dati con il grabbing
April 5th, 2010 8:58 am
Credo che l’importante sia non abusarne, anche Google fa grabbing a tutti i livelli, non sono sicuro che penalizzi queste attività , dove l’hai letto?
May 10th, 2010 7:25 am
[...] there are 17 bots included in this class! Well I’ve updated the mini bots class with some new things: you can now retrive the list of videos from a Youtube user, you can retrieve [...]
May 23rd, 2010 7:49 pm
[...] Link: http://www.barattalo.it/mini-bots-php-class/ [...]
May 23rd, 2010 7:50 pm
Trackback:
http://distriwatch.de/2010/05/how-to-get-images-from-google-images-with-php/
August 8th, 2010 4:20 pm
[...] The complex part, for me, was understing XML-RPC rules and build the correct headers to call the service. The call is made with fsockopen php function. Here is the function that will be added to the next version of Mini Bot Class. [...]
August 9th, 2010 4:58 pm
[...] Mini Bots PHP Class [...]
August 29th, 2010 3:14 pm
[...] Mini Bots PHP Class [...]
August 29th, 2010 3:27 pm
[...] Mini Bots PHP Class [...]