Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Autofill websforms
#4
(Oct-25-2020, 03:40 AM)JudgeDredd Wrote: How do you identify/detect the Elements for the fields/columns/buttons/login_Prompts/etc that are different on each site, considering they may be slighty named different - i.e lastname/surname, create_account/sign-up, login/sign-in
Both in Chrome and FireFox can copy CSS selector or XPath.
Right click inspect,the choose a tag and right click copy, Selector or XPath.
Sometime do i use ChroPath.

Can also if send code(browser.page_source) to BS,then can parse using method that BS has.
Here a example of this.
So can now use a BS method.
use_bs4 = soup.find('div', class_="col col-7-12")
Reply


Messages In This Thread
Autofill websforms - by JudgeDredd - Oct-24-2020, 11:22 PM
RE: Autofill websforms - by Larz60+ - Oct-25-2020, 01:53 AM
RE: Autofill websforms - by JudgeDredd - Oct-25-2020, 03:40 AM
RE: Autofill websforms - by snippsat - Oct-25-2020, 10:48 AM

Forum Jump:

User Panel Messages

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