Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Web Scraping on href text
#1
Hello to all.
I'm new to python but I would like to use it to do scraping on a website.
I need to search for a name within the text part of an anchor and if found the string, take the href link to open the page.
this is the part to look for:

<P> <LI> <A href="earinaaestivalis.htm"> Cheeeman Earina aestivalis 1919 <A/> <P> <img src = "orphotdir / scent.jpg"> <img src = "orphotdir / partialshade.jpg" > <img src = "orphotdir / tempint.jpg"> MID <img src = "orphotdir / spring.jpg"> THROUGH <img src = "orphotdir / summer.jpg">

I have to look for the name Earina in the text Earina aestivalis Cheeseman 1919 and if I find it, I have to open the page in href.
I did some scripts with Beautifulsoap and I did all the best if I look for the inside text .. but I can't find a text in the complete text.
Who can help me ?
Thanks
Reply


Messages In This Thread
Web Scraping on href text - by Superzaffo - Nov-13-2019, 10:32 PM
RE: Web Scraping on href text - by Larz60+ - Nov-14-2019, 12:30 AM
RE: Web Scraping on href text - by Superzaffo - Nov-14-2019, 09:06 AM
RE: Web Scraping on href text - by Malt - Nov-14-2019, 10:27 AM
RE: Web Scraping on href text - by Larz60+ - Nov-14-2019, 10:54 AM
RE: Web Scraping on href text - by Superzaffo - Nov-14-2019, 08:20 PM
RE: Web Scraping on href text - by Superzaffo - Nov-14-2019, 10:05 PM
RE: Web Scraping on href text - by Larz60+ - Nov-15-2019, 02:33 AM
RE: Web Scraping on href text - by Superzaffo - Nov-15-2019, 08:10 AM
RE: Web Scraping on href text - by Larz60+ - Nov-15-2019, 12:43 PM
RE: Web Scraping on href text - by Superzaffo - Nov-15-2019, 01:18 PM
RE: Web Scraping on href text - by Superzaffo - Nov-16-2019, 10:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Extract Href URL and Text From List knight2000 2 9,124 Jul-08-2021, 12:53 PM
Last Post: knight2000
  BeautifulSoup pagination using href rhat398 1 2,428 Jun-30-2021, 10:55 AM
Last Post: snippsat
  Accessing a data-phone tag from an href KatMac 1 2,907 Apr-27-2021, 06:18 PM
Last Post: buran
  Scraping all website text using Python MKMKMKMK 1 2,095 Nov-26-2020, 10:35 PM
Last Post: Larz60+
  Scraping text from application? kamix 1 1,603 Sep-25-2020, 10:53 PM
Last Post: Larz60+
  How to get the href value of a specific word in the html code julio2000 2 3,229 Mar-05-2020, 07:50 PM
Last Post: julio2000
  scraping in a text/javascript saasyp 1 2,234 Aug-31-2019, 11:39 AM
Last Post: metulburr
  Scrapy Picking What to Output Href or Img soothsayerpg 1 2,719 Aug-02-2018, 10:59 AM
Last Post: soothsayerpg
  Flask - Opening second page via href is failing - This site can’t be reached rafiPython1 2 5,509 Apr-11-2018, 08:41 AM
Last Post: rafiPython1

Forum Jump:

User Panel Messages

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