Python Forum
My first Web Scraping project
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My first Web Scraping project
#4
elements = (title_element, company_element, location_element)
if all(elements):
    for element in elements:
        print(element.text.strip())
    print()
the part where you search for each element can also be shortened with a loop if you have a container type with what you search for
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
My first Web Scraping project - by pyzyx3qwerty - Jun-08-2020, 10:29 AM
RE: My first Web Scraping project - by metulburr - Jun-08-2020, 10:42 AM
RE: My first Web Scraping project - by pyzyx3qwerty - Jun-08-2020, 10:50 AM
RE: My first Web Scraping project - by buran - Jun-08-2020, 01:16 PM
RE: My first Web Scraping project - by pyzyx3qwerty - Jun-08-2020, 02:56 PM

Forum Jump:

User Panel Messages

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