mirror of
https://github.com/Shineii86/MiruroAPI.git
synced 2026-10-22 10:15:10 +00:00
fix: ScraperAPI requires premium plan for protected domains like Miruro
- pipe.js: add premium=true to ScraperAPI URL - README.md: update ScraperAPI cost to $49/mo (premium required) - .env.example: note protected domain requirement - CHANGELOG.md: update ScraperAPI cost info
This commit is contained in:
+1
-1
@@ -153,7 +153,7 @@ const methodScraperAPI = async (encodedReq) => {
|
||||
if (!SCRAPER_API_KEY) throw new Error("SCRAPER_API_KEY not configured");
|
||||
|
||||
const targetUrl = `${MIRURO_ORIGINS[0]}${PIPE_PATH}?e=${encodedReq}`;
|
||||
const scraperUrl = `https://api.scraperapi.com/?api_key=${SCRAPER_API_KEY}&url=${encodeURIComponent(targetUrl)}`;
|
||||
const scraperUrl = `https://api.scraperapi.com/?api_key=${SCRAPER_API_KEY}&premium=true&url=${encodeURIComponent(targetUrl)}`;
|
||||
|
||||
const res = await axios.get(scraperUrl, {
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user