February 13, 201313 yr Hi All, I'm not even sure if this will be possible but a client has asked whether we could look into providing them with some sort of service that would involve going to a website, performing a search for the latest tenders available in their field and then emailing that list to them on a daily basis. I was just wondering if it is possible to create something like this using PHP? If anyone can point me in the right direction it will be much appreciated Fred
February 13, 201313 yr Author The site can be seen here: http://ted.europa.eu/TED/main/HomePage.do It does have RSS feeds but can't see how they can be filtered for what we are looking for...
February 13, 201313 yr You should be aware that a lot of people / companies / website owners that don't appreciate having data scraped. My old boss used to make a point of tracing "scrapers" and generally hassling them.
February 13, 201313 yr It's do-able but as rallport points out it the code gets ugly real quick for some sites.. If the RSS feeds themselves do not contain the keywords needed to identify what the client wants then this 'little-extra' becomes a full blown site scraper. Where you have to read every RSS feed, fetch every page on the end of those links.. then scan the text for what you need to find. Takes a peek and pokes a URL or three... Looks like it is going to require using cURL+cookies and possibly spoofing of the referer value in the headers to drill down through the sub-pages If you have never done this kind of thing before I would walk away, tell the client it's against the sites Terms of service. You could try opening an account with TED and see if they send email alerts. Edited February 13, 201313 yr by Sogo7
February 13, 201313 yr From your linked page Why should I register on TED?To get e-mail alerts based on your search profiles. looks like a goer
February 13, 201313 yr Author Thanks for your input guys. I believe they are currently paying TED a sum each year for this service and were just wondering if there was a cheaper alternative. Sounds like this might be a pretty big job though and might need to be turned down...
February 14, 201313 yr Where there's a will there's a way Take a look at Export.gov they also provide the TED information but it's raw is some cases and not translated into English. No idea how often it updates. The site will respond to the simplest of GET requests (even with Yahoo Pipes!), translation could probably be done on the Google API as for the legality of scraping a american.gov site I'd be inclined to ask them nicely first.
Create an account or sign in to comment