Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Replying to a Javascript/jQuery
#4
It call something in 18n.
If want automat this i would not bother to find out what it dos,but use Selenium
A example find selector of button an then can click on it.
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
from bs4 import BeautifulSoup
import time

#--| Setup
options = Options()
#options.add_argument("--headless")
browser = webdriver.Chrome(executable_path=r'C:\cmder\bin\chromedriver.exe', options=options)
#--| Parse or automation
url = "https://www.donotcall.gov/report.html"
browser.get(url)
time.sleep(3)
button_continue = browser.find_elements_by_css_selector('#MainContinueButton')
button_continue[0].click()
# Continue with fill all the form data
Reply


Messages In This Thread
Replying to a Javascript/jQuery - by gw1500se - Nov-17-2021, 02:31 PM
RE: Replying to a Javascript/jQuery - by snippsat - Nov-17-2021, 07:44 PM
RE: Replying to a Javascript/jQuery - by gw1500se - Nov-18-2021, 02:49 PM
RE: Replying to a Javascript/jQuery - by snippsat - Nov-18-2021, 04:57 PM
RE: Replying to a Javascript/jQuery - by gw1500se - Nov-19-2021, 02:49 PM
RE: Replying to a Javascript/jQuery - by gw1500se - Nov-19-2021, 05:35 PM
RE: Replying to a Javascript/jQuery - by snippsat - Nov-19-2021, 07:59 PM
RE: Replying to a Javascript/jQuery - by gw1500se - Nov-20-2021, 02:49 PM
RE: Replying to a Javascript/jQuery - by snippsat - Nov-20-2021, 08:08 PM
RE: Replying to a Javascript/jQuery - by gw1500se - Nov-21-2021, 03:44 PM
RE: Replying to a Javascript/jQuery - by snippsat - Nov-21-2021, 05:54 PM
RE: Replying to a Javascript/jQuery - by gw1500se - Nov-21-2021, 06:51 PM
RE: Replying to a Javascript/jQuery - by snippsat - Nov-21-2021, 07:28 PM
RE: Replying to a Javascript/jQuery - by gw1500se - Nov-21-2021, 08:19 PM
RE: Replying to a Javascript/jQuery - by gw1500se - Nov-21-2021, 08:49 PM
RE: Replying to a Javascript/jQuery - by snippsat - Nov-21-2021, 10:16 PM
RE: Replying to a Javascript/jQuery - by gw1500se - Nov-22-2021, 02:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  POST Reply to Ajax/jQuery (mostly an HTML question) gw1500se 5 2,764 Nov-18-2021, 02:44 PM
Last Post: gw1500se

Forum Jump:

User Panel Messages

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