Python Forum
Python requests to loop over the list and click button
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python requests to loop over the list and click button
#4
See there's a difference between scraping data from a static page and interacting with the page and the elements on it.(using DOM and JavaScript)

Eg:
bs4 and requests modules can scrap data from both URLs below.
https://www.google.com and https://www.google.co.in/search?q=python.

But what they can't do is to type search query ("python") into the Google's search box and press enter.

For that, you need to use selenium, splinter or any other browser automation tool.

In your case, you are required to interact with the page in order to get to the URL where actual data resides.
Reply


Messages In This Thread
RE: Python requests to loop over the list and click button - by hbknjr - Oct-26-2017, 11:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  cant click button by script at page michael1834 1 1,119 Dec-08-2023, 04:44 PM
Last Post: SpongeB0B
  Click on a button on web page using Selenium Pavel_47 7 4,790 Jan-05-2023, 04:20 AM
Last Post: ellapurnellrt
  POST requests - different requests return the same response Default_001 3 1,980 Mar-10-2022, 11:26 PM
Last Post: Default_001
  Show HTML in Python application and handle click SamHobbs 2 2,766 Sep-28-2021, 06:27 PM
Last Post: SamHobbs
  button click error rafarangel 2 3,170 Feb-11-2021, 08:19 PM
Last Post: buran
  Problem with logging in on website - python w/ requests GoldeNx 6 5,398 Sep-25-2020, 10:52 AM
Last Post: snippsat
  Log In Button Won't Click - Python Selenium Webdriver samlee916 2 3,880 Jun-07-2020, 04:42 PM
Last Post: samlee916
  How to click facebook message button JanelleGuthrie 2 2,447 May-14-2020, 06:02 PM
Last Post: Larz60+
  How to perform a successful login(signin) through Requests in Python Kalet 1 2,376 Apr-24-2020, 01:44 AM
Last Post: Larz60+
  Contact form button click action Man_from_India 1 2,835 Feb-01-2020, 06:21 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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