Dec 27 2009

Mini Bots PHP Class

Giulio Pons @ 11:49 pm

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:

  1. search Google and get the spelling suggest (DEMO)
  2. search Google and retrieve the meteo information for a place
  3. search Bank Of Italy service to get exchange rates for a specified currency
  4. search GeoIpTool to retrieve geographical information from a specified IP address (DEMO)
  5. contact any mail server to validate email address through smtp protocol (DEMO)
  6. call tinyurl.com to get a tiny url of a specified long url (DEMO)
  7. decode any small url to the original long url (DEMO)
  8. url checker to see if a url exists
  9. get url infos to get data about a page (title, description, favicon, images) (DEMO)
  10. retrieves all the text from a url
  11. convert a url to a pdf and save it to a local file
  12. get twitter users info from web page and from Twitter’s API
  13. set twitter status
  14. get twitter statuses update list
  15. get video list uploaded by a user in Youtube (DEMO)
  16. get first page of url images from Google Images (DEMO)
  17. change facebook status
  18. post to facebook fan page wall
  19. parsing rss flickr feed of a user (DEMO)
  20. sending push alerts to iPhone (DEMO)
  21. google suggest keywords service (DEMO)
  22. 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.

  • Share/Bookmark

15 Responses to “Mini Bots PHP Class”

  1. seeal says:

    love this class thx :D

  2. Matteo says:

    Great class , thanks :)

  3. Greg Avola says:

    Great work dude – way to go.

  4. uberVU - social comments says:

    Social comments and analytics for this post…

    This post was mentioned on Twitter by deliciobot: #DelicioBot : Mini Bots PHP Class http://bit.ly/5sfw5Q...

  5. holyguard says:

    Utilissimo!!!

    Puoi usare l’exchange rate di Google invece di quello della banca d’Italia, che te ne pare?

  6. Tod Wedge says:

    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.

  7. webcarlo says:

    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

  8. admin says:

    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?

  9. PHP Mini bot « My Blog says:

    [...] 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 [...]

  10. LongVNIT » Ping pingomatic.com services with PHP says:

    [...] 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. [...]

Leave a Reply