taroved / pol

RSS generator website
MIT License
381 stars 88 forks source link

Is it possible to add this functionality? #8

Closed Hasan0ff closed 6 years ago

Hasan0ff commented 6 years ago

Is it possible to add functionality so that politepol extracts all the links from the given webpage if the URL contains /news/ or /article/ or anything like that..

e.g target page http://www.example.com/ilovelife.php in the target page there are 50 links which have /article/ in their URL..

taroved commented 6 years ago

You can edit xpath selectors in "Selectors editor" mode. To extract links which contain /news/ or /article/ you can use in "Post xpath" something like this: //a[contains(@href, '/news/') or contains(@href, '/article/')]

Let me know if you need more specific information.

Hasan0ff commented 6 years ago

works... //a[contains(@href,'/news/')]