skip to Main Content

Html – How to select a specific child tag from a parent tag and scrape data from it?

There exist several of these <div> tags where class="b-card" in the HTML file which which I extracted the following HTML code: <div class="b-card"> <div class="builder-exp-wrap"> <a class="no-ajaxy img-wrap js-rc-link" data-href="/puravankara-limited-100046"> <img alt="Images for Logo of Puravankara" src="https://im.proptiger.com/3/100046/13/puravankara-4491843.jpeg?width=155&amp;height=50"/> </a> <div class="builder-details-wrap">…

VIEW QUESTION

Javascript – scraping table from web page

I'm trying to scrape a table from a webpage using Selenium and BeautifulSoup but I'm not sure how to get to the actual data using BeautifulSoup. webpage: https://leetify.com/app/match-details/5c438e85-c31c-443a-8257-5872d89e548c/details-general I tried extracting table rows (tag <tr>) but when I call find_all,…

VIEW QUESTION

Html – beautifulsoup get Href having div text

Is there any solution to get a link from the HTML, which has a tag and a div tag? html1: <a href="https://u50.ct.sendgrid.net/ls" target="_blank"> <div class="subtitle"> Service request #2226754 </div></a> html2: <div class="subtitle"> Service request <a href="https://u5024.ct.sendgrid.net/ls" style="color:#5A88AA; text-decoration:underline;" target="_blank">#2604467</a> </div>…

VIEW QUESTION

Html – Python/BeautifulSoup: How to remove tags from the elements?

I have an html source like this: `<tbody><tr ><th ...><a href="/en/players/774cf58b/Max-Aarons">Max Aarons</a></td><td class="center " data-stat="position" csk="2.0" >DF</td><td class="left " data-stat="team" ><a href="/en/squads/4ba7cbea/Bournemouth-Stats">Bournemouth</a></td><td class="center " data-stat="age" >23</td>` My code: > import requests from bs4 import BeautifulSoup import pandas as pd import…

VIEW QUESTION
Back To Top
Search