- Nov 4, 2023
- 599
- 159
I want to keep the orignal html , only remove the ad block
Is there any existing solution for this purpose?
Is there any existing solution for this purpose?
Thanks very much, will try later onNot sure of a pre built library... Newspaper is ok from Python but it hasn't been updated in years so YMMV.
Most WordPress sites don't disable access to the wp-json V2 API so if you want to get rid of a lot of website fluff be and make less requests to the server, just put
wp-json/wp/v2/posts (or pages)
At the end of the homepage URL and you'll be able to see everything. You can read more about it following the WordPress WP Json API documentation.
Hope this helps.
Thanks, this is also usefulYes, there is a python scraper available with filter functions:
https://github.com/MickaelWalter/wp-json-scraper
Will try this! Seems to be that the scraping is a good business this daysYes, there is a python scraper available with filter functions:
https://github.com/MickaelWalter/wp-json-scraper