Skip to content

Tag: beautifulsoup

how should i scrape href links from this website?

I’m trying to get every products individual URL link from this link https://www.goodricketea.com/product/darjeeling-tea .How should I do that with beautifulsoup? Is there anyone who can help me? Answer To get product links from this site, you can for example do: Prints:

I want to replace the html code with my own

I am using lxml and beautifulsoup library, actually my goal is to translate text of the specific tags out of the whole html code, what I want is, I want to replace the text of specific tags with the translated text. I want to set a loop for the specific xpath in which all the translated text should be inserte…

bs4 p tags returning as None

// scraping link from title, then opening that link and trying to scrape the whole article, very new to this so I don’t know what to do! Answer On some pages the <p> tags are not under an <article>, and therefor is returning None. Instead, to scrape all the paragraphs (and <li> tags if…