Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scrape java script web site
#6
First of all find_element_by_id returns None. And you cannot set the filename to None. Second of all...

you dont have to use open() at all. You only have to click the button and it should download. However you might want to wait a few seconds after the click to allow it to download.

        browser.find_element_by_id('cph_InnerContainerRight_C001_lnkExpToCSV').click()
        time.sleep(10)
Just tested with this ant it works fine.
Recommended Tutorials:
Reply


Messages In This Thread
Scrape java script web site - by PythonHunger - Oct-24-2018, 05:01 AM
RE: Scrape java script web site - by Larz60+ - Oct-24-2018, 06:24 AM
RE: Scrape java script web site - by preethishetty - Oct-24-2018, 08:37 AM
RE: Scrape java script web site - by PythonHunger - Oct-24-2018, 09:11 AM
RE: Scrape java script web site - by Larz60+ - Oct-24-2018, 03:48 PM
RE: Scrape java script web site - by metulburr - Oct-24-2018, 07:57 PM
RE: Scrape java script web site - by PythonHunger - Oct-25-2018, 05:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Can we automate Java based Webservices PythonBeginner_2020 5 2,584 Mar-25-2020, 12:09 PM
Last Post: PythonBeginner_2020
  scrape data 1 go to next page scrape data 2 and so on alkaline3 6 5,444 Mar-13-2020, 07:59 PM
Last Post: alkaline3
  Scrape script when deployed on heroku not giving expected outcomes alok001 1 3,320 Oct-19-2019, 12:39 PM
Last Post: alok001
  Web scraping and java script yoz69100 2 1,981 Oct-14-2019, 07:41 PM
Last Post: yoz69100

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020