D
Dan Mansfield
Hi there,
I'm working on a project to automate retrieval of content and the
download of a pdf bill from an ISPs website. I have 30 connections with
this ISP and each has its own username and password. So far I have been
able to get the content I need that is actually stored within the page.
You have to login and go to a specific page to be able to click on the
link.
The link itself isn't the pdf as its generated on the fly:
source code of the link:
<a href="/be-portal/downloadPdf"
onclick="cmCreatePageElementTag('Download PDF', 'Member Centre');"
class="btn_Link">Download PDF</a>
I'm selecting it with:
link = invoice_page.links_withhref => "/be-portal/downloadPdf")
how can I click this link to download the pdf and store it to the
filesystem?
btw, I only started with Ruby and Mechanize less than 24 hours ago.
TIA
Regards,
Dan
I'm working on a project to automate retrieval of content and the
download of a pdf bill from an ISPs website. I have 30 connections with
this ISP and each has its own username and password. So far I have been
able to get the content I need that is actually stored within the page.
You have to login and go to a specific page to be able to click on the
link.
The link itself isn't the pdf as its generated on the fly:
source code of the link:
<a href="/be-portal/downloadPdf"
onclick="cmCreatePageElementTag('Download PDF', 'Member Centre');"
class="btn_Link">Download PDF</a>
I'm selecting it with:
link = invoice_page.links_withhref => "/be-portal/downloadPdf")
how can I click this link to download the pdf and store it to the
filesystem?
btw, I only started with Ruby and Mechanize less than 24 hours ago.
TIA
Regards,
Dan