1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Web scraping for multiple classes using python

Discussão em 'Python' iniciado por Stack, Setembro 11, 2024.

  1. Stack

    Stack Membro Participativo

    I am trying to scrape address from 10K filing document in HTML: https://www.sec.gov/Archives/edgar/data/1652044/000165204419000032/goog10-qq32019.htm

    It has multiple div class, and I want to scrape for address inside span.

    Expected output:

    1600 Amphitheatre parkway

    I have tried few things like below:

    from requests_html import HTMLSession

    s = HTMLSession()
    r = s.get('https://www.sec.gov/Archives/edgar/data/1652044/000165204419000032/goog10-qq32019.htm')
    r

    add1 = r.html.find_all('div')
    add1


    However, if you inspect the page it has many layers I am new to HTML and python. Please help

    Continue reading...

Compartilhe esta Página