vendredi 26 août 2022

nokogiri : finding a node in html document by their styling

I am currently working in a web scrapping project with ruby on rails and below is the web-page link I am working on.

https://www.livelaw.in/top-stories/supreme-court-civil-suit-maintainable-jurisdiction-scope-sau-rajani-vs-sau-smita-2022-livelaw-sc-702-207475?infinitescroll=1

I have fetched all the (.story p ) from this page and particularly want to remove the last tag having background-color:rgb(255,255,0) Here's the thing I want to remove

I want to select the tag using the custom styling it has. picture for clarity

I have tried everything and not able to do so. I there any other way I can select the desired text and remove it from the doc.

Aucun commentaire:

Enregistrer un commentaire