Oct-25-2020, 10:48 AM
(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-inBoth 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")