Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^3: Selenium get_page_source function

by Illuminatus (Curate)
on Aug 08, 2013 at 15:44 UTC ( #1048597=note: print w/replies, xml ) Need Help??

in reply to Re^2: Selenium get_page_source function
in thread Selenium get_page_source function

Your code example shows it writing the return from get_page_source to the file that you're renaming to ".zip". I wasn't sure if some additional transformation was necessary to remove the html 'wrapper'. These are the things I would do (some of which you may have already done):
  1. Download the zip file manually and verify that you can unzip it
  2. If you're on a *nix system, run 'sum' and 'file' on the file and keep the results
  3. Verfiy the 'content-encoding:' is what you expect
  4. Once you use your script to download, use 'sum' and 'file' on the result(s) to look for differences


  • Comment on Re^3: Selenium get_page_source function

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1048597]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2022-01-19 09:13 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (55 votes). Check out past polls.