Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Pulling data from a website and sending it via email daily.

Featured Replies

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

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.

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 by Sogo7

From your linked page

 

 

Why should I register on TED?To get e-mail alerts based on your search profiles.

 

looks like a goer :)

  • 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...

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.