alirezamika / autoscraper

A Smart, Automatic, Fast and Lightweight Web Scraper for Python
MIT License
6.16k stars 648 forks source link

Return matching element with result #91

Open van51 opened 1 year ago

van51 commented 1 year ago

Hello! First of all, thanks for this great library!

I had a use-case where I wanted to find the matching elements of the rules instead of simply their text. So I opted for the changes described by this PR and tried to keep them as minimal as possible. I hope you find them useful and consider merging them. If you are onboard with the idea behind this PR, but not keen on the implementation, feel free to suggest alternatives.