Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Any ideas how I can download a file from a web site that requires login mimicking clicks

Status
Not open for further replies.

pc3957

ISP
Aug 24, 2004
20
US
Hi everyone,

What I'm trying to do is (I'm hoping) rather straight forward. I want to download a CSV file from a website (the website generates the CSV) and process it with PHP. I know how to do the processing, but I can't figure out how to get it from the website.

In my browser I would do the following:
1) Browse to the login URL
2) Login with my email address and password (via web forms) and click the Login button.
3) I'm redirected to the dashboard where several tables load by AJAX. The first table has a CSV button I click.
4) A CSV is downloaded to my computer. However URL is kind of cryptic (blob: UID>)

Does anyone know how I can mimic these actions in PHP? Is it possible?

Thanks in advance!
 
Is this for some sort of unauthorized scraping or other exploit?

The web site publisher has likely set up this login process to prevent misuse of their content.

These login processes are employed because the site owner may want to trade your data or subscription payment for their data. The login process is most likely employed to prevent system resource abuse.

Instead of PHP, use TXT and send a message to the site's publisher to gain access to their data.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top