It is unable to scrape <li>
wanted_list = ["Design, develop, test, refactor and scale backend implementations of new and existing consumer product features"]
scraper = AutoScraper()
result = scraper.build(url, wanted_list)
I am able to scrape the element in the wanted_list but similar elements are not scraped successfully, any tips and tricks could fix this?
please provide your full code including the url.
wanted_list = ["Design, develop, test, refactor and scale backend implementations of new and existing consumer product features"]
scraper = AutoScraper()
result = scraper.build(url, wanted_list)
print(result)
Link: https://careers.chime.com/en/jobs/4225356002/backend-engineer/
What is your expected output?
My expected output is the content of all the <li> under the same <ul> which is: Design, develop ... Work with ... Collaborate with ... Proactively find ...
you can try the contain_sibling_leaves attribute.
result = scraper.get_result_similar(url, contain_sibling_leaves=True)
I will give it a try, thanks.
In addition, can you point me to the part of the code that decides which elements to scrape based on the wanted_list? Thank you!
its basically the whole code 😅
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.