Added Scraper API option. #100
Reference in New Issue
Block a user
Delete Branch "scraper-api-support"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added option to turn on Scraper API through env variables. Just modified url to be crawled/scraped. API key also configurable.
SHould default to USE - it is more secure option. Scraping directly is less secure so if someone forgets to set the variables it is better that scraping fails than the server being exposed to the content providers.
changed this line in version 2 of the diff
added 1 commit
148b2ea8- Changed default.Compare with previous version
Changed default as suggested.
newUrl - bad name. Why is this url used ?
scraperApiUrl - better ?
better!
but is it better ? If
USE_SCRAPER_APIis false then that url does not contain scraperApiUrl ...Right, urlAdaptedForScraping ? if USE_SCRAPER_API is false then it is "ordinary url"; if it is true then it is from scraper api
Ok that's better ! 😁
I second Senad's comments. Looks good otherwise.
changed this line in version 3 of the diff
added 1 commit
ce857ddc- Renamed var.Compare with previous version
Renamed var to urlAdaptedForScraping
🚢 🇮🇹
mentioned in commit
08ad9edfe1merged