Hello everyone, I'm trying to find a script that will show the average US gas price. There are a lot of sites that give a national number (Gasbuddy.com is a big one, MSN Autos has it too), but none of them appear to offer an RSS feed or a script that I could modify. After extensive Googleing, I've yet to find a solution. Does anyone know of a gas price script or some other method for making the US national gas price average into a PHP variable?
Failing that, does anyone know of a script that will simply display the US average price for crude oil?
Thanks
Tom
Gas Price Script
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Not sure if it will help, but have you had a look at GasPriceWatch.com?
-
Tomcat7194
- Forum Commoner
- Posts: 48
- Joined: Mon Jul 31, 2006 1:34 pm
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
yes it could be illigal (you steal their hard discovered content).
take a look at:
and you might find yourself something interesting
take a look at:
Code: Select all
echo file_get_contents('http://sitename.com');