Reddit Scraper Lite avatar
Reddit Scraper Lite
Try for free

Pay $4.00 for 1,000 results

View all Actors
Reddit Scraper Lite

Reddit Scraper Lite

trudax/reddit-scraper-lite
Try for free

Pay $4.00 for 1,000 results

Pay Per Result, unlimited Reddit web scraper to crawl posts, comments, communities, and users without login. Limit web scraping by number of posts or items and extract all data in a dataset in multiple formats.

User avatar

ERROR Stealth: StealthError:

Closed

phenomenal_hamster opened this issue
2 years ago

keep getting errors -

ERROR Stealth: StealthError: Failed to apply stealth trick reason: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".

see attached.

Here's the log.

"2022-10-05T19:25:32.518Z ACTOR: Pulling Docker image from repository. 2022-10-05T19:25:34.674Z ACTOR: Creating Docker container. 2022-10-05T19:25:35.255Z ACTOR: Starting Docker container. 2022-10-05T19:25:35.968Z Starting X virtual framebuffer using: Xvfb :99 -ac -screen 0 1280x720x16 -nolisten tcp 2022-10-05T19:25:35.969Z Executing main command 2022-10-05T19:25:37.523Z INFO System info {"apifyVersion":"2.3.2","apifyClientVersion":"2.6.0","osType":"Linux","nodeVersion":"v16.15.0"} 2022-10-05T19:25:37.613Z INFO Found startUrl. Search params will be ignored. 2022-10-05T19:25:37.614Z WARN You are asking to scrape 15 comments, this number is higher than the max of 10 allowed. 2022-10-05T19:25:37.615Z WARN You can scrape unlimited items by using the pro version of this actor, available here: 2022-10-05T19:25:37.616Z https://apify.com/trudax/reddit-scraper-pro 2022-10-05T19:25:37.656Z DEBUG RequestList: Loaded state from key value store using the persistStateKey. 2022-10-05T19:25:38.135Z INFO Starting the crawl. 2022-10-05T19:25:38.197Z DEBUG PuppeteerCrawler:AutoscaledPool: scaling up {"oldConcurrency":1,"newConcurrency":2,"systemStatus":{"isSystemIdle":true,"memInfo":{"isOverloaded":false,"limitRatio":0.2,"actualRatio":null},"eventLoopInfo":{"isOverloaded":false,"limitRatio":0.6,"actualRatio":null},"cpuInfo":{"isOverloaded":false,"limitRatio":0.4,"actualRatio":null},"clientInfo":{"isOverloaded":false,"limitRatio":0.3,"actualRatio":null}}} 2022-10-05T19:25:38.198Z INFO PuppeteerCrawler:AutoscaledPool: state {"currentConcurrency":0,"desiredConcurrency":2,"systemStatus":{"isSystemIdle":true,"memInfo":{"isOverloaded":false,"limitRatio":0.2,"actualRatio":null},"eventLoopInfo":{"isOverloaded":false,"limitRatio":0.6,"actualRatio":null},"cpuInfo":{"isOverloaded":false,"limitRatio":0.4,"actualRatio":null},"clientInfo":{"isOverloaded":false,"limitRatio":0.3,"actualRatio":null}}} 2022-10-05T19:25:39.772Z DEBUG PuppeteerCrawler:SessionPool: Created new Session - session_i9w9x1sBrN 2022-10-05T19:25:39.776Z DEBUG PuppeteerCrawler:SessionPool: Created new Session - session_znEg6t2Bbt 2022-10-05T19:25:48.199Z DEBUG PuppeteerCrawler:AutoscaledPool: scaling up {"oldConcurrency":2,"newConcurrency":3,"systemStatus":{"isSystemIdle":true,"memInfo":{"isOverloaded":false,"limitRatio":0.2,"actualRatio":0},"eventLoopInfo":{"isOverloaded":false,"limitRatio":0.6,"actualRatio":0},"cpuInfo":{"isOverloaded":false,"limitRatio":0.4,"actualRatio":0},"clientInfo":{"isOverloaded":false,"limitRatio":0.3,"actualRatio":0}}} 2022-10-05T19:26:00.656Z ERROR Stealth: StealthError: Failed to apply stealth trick reason: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'". 2022-10-05T19:26:00.657Z 2022-10-05T19:26:00.658Z ERROR Stealth: StealthError: Failed to apply stealth trick reason: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'". 2022-10-05T19:26:00.659Z 2022-10-05T19:26:00.664Z ERROR Stealth: StealthError: Failed to apply stealth trick reason: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'". 2022-10-05T19:26:00.665Z 2022-10-05T19:26:00.666Z ERROR Stealth: StealthError: Failed to apply stealth trick reason: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'". 2022-10-05T19:26:00.667Z 2022-10-05T19:26:00.667Z ERROR Stealth: StealthError: Failed to apply stealth trick reason: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'". 2022-10-05T19:26:00.668Z 2022-10-05T19:26:00.669Z ERROR Stealth: StealthError: Failed to apply stealth trick reason: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'". 2022-10-05T19:26:00.669Z 2022-10-05T19:26:00.670Z ERROR Stealth: StealthError: Failed to apply stealth trick reason: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'". 2022-10-05T19:26:00.671Z 2022-10-05T19:26:00.671Z ERROR Stealth: StealthError: Failed to apply stealth trick reason: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'". 2022-10-05T19:26:00.672Z 2022-10-05T19:26:00.672Z ERROR Stealth: StealthError: Failed to apply stealth trick reason: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'". 2022-10-05T19:26:00.673Z 2022-10-05T19:26:01.042Z ERROR Stealth: StealthError: Failed to apply stealth trick reason: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src https://m.stripe.network 'sha256-e/Jqu4k9Gk1ZCWO6StAsfhF3i7qgIwfuitaD1g9DyvE='". 2022-10-05T19:26:01.043Z 2022-10-05T19:26:01.044Z ERROR Stealth: StealthError: Failed to apply stealth trick reason: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src https://m.stripe.network 'sha256-e/Jqu4k9Gk1ZCWO6StAsfhF3i7qgIwfuitaD1g9DyvE='". 2022-10-05T19:26:01.044Z 2022-10-05T19:26:01.045Z ERROR Stealth: StealthError: Failed to apply stealth trick reason: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src https://m.stripe.network 'sha256-e/Jqu4k9Gk1ZCWO6StAsfhF3i7qgIwfuitaD1g9DyvE='". 2022-10-05T19:26:01.045Z 2022-10-05T19:26:01.046Z ERROR Stealth: StealthError: Failed to apply stealth trick reason: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src https://m.stripe.network 'sha256-e/Jqu4k9Gk1ZCWO6StAsfhF3i7qgIwfuitaD1g9DyvE='". 2022-10-05T19:26:01.046Z 2022-10-05T19:26:01.047Z ERROR Stealth: StealthError: Failed to apply stealth trick reason: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src https://m.stripe.network 'sha256-e/Jqu4k9Gk1ZCWO6StAsfhF3i7qgIwfuitaD1g9DyvE='". 2022-10-05T19:26:01.047Z 2022-10-05T19:26:01.048Z ERROR Stealth: StealthError: Failed to apply stealth trick reason: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src https://m.stripe.network 'sha256-e/Jqu4k9Gk1ZCWO6StAsfhF3i7qgIwfuitaD1g9DyvE='". 2022-10-05T19:26:01.048Z 2022-10-05T19:26:01.049Z ERROR Stealth: StealthError: Failed to apply stealth trick reason: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src https://m.stripe.network 'sha256-e/Jqu4k9Gk1ZCWO6StAsfhF3i7qgIwfuitaD1g9DyvE='". 2022-10-05T19:26:01.049Z 2022-10-05T19:26:01.050Z ERROR Stealth: StealthError: Failed to apply stealth trick reason: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src https://m.stripe.network 'sha256-e/Jqu4k9Gk1ZCWO6StAsfhF3i7qgIwfuitaD1g9DyvE='". 2022-10-05T19:26:01.051Z 2022-10-05T19:26:01.051Z ERROR Stealth: StealthError: Failed to apply stealth trick reason: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src https://m.stripe.network 'sha256-e/Jqu4k9Gk1ZCWO6StAsfhF3i7qgIwfuitaD1g9DyvE='". 2022-10-05T19:26:01.052Z 2022-10-05T19:26:16.182Z INFO Processing https://www.reddit.com/user/Magical-flutter... 2022-10-05T19:26:16.183Z DEBUG Type: user 2022-10-05T19:26:16.222Z WARN Url does not match any parser 2022-10-05T19:26:16.329Z INFO PuppeteerCrawler: All the requests from request list and/or request queue have been processed, the crawler will shut down. 2022-10-05T19:26:16.381Z DEBUG PuppeteerCrawler:SessionPool: Persisting state {"persistStateKey":"SDK_SESSION_POOL_STATE"} 2022-10-05T19:26:16.454Z DEBUG Statistics: Persisting state {"persistStateKey":"SDK_CRAWLER_STATISTICS_0"} 2022-10-05T19:26:16.544Z INFO PuppeteerCrawler: Final request statistics: {"requestsFinished":1,"requestsFailed":0,"retryHistogram":[1],"requestAvgFailedDurationMillis":null,"requestAvgFinishedDurationMillis":36496,"requestsFinishedPerMinute":2,"requestsFailedPerMinute":0,"requestTotalDurationMillis":36496,"requestsTotal":1,"crawlerRuntimeMillis":38407} 2022-10-05T19:26:16.547Z INFO Crawl finished. "

User avatar

Hi Joe, what is the input URL you are trying to scrape? Normally this error happens when the page requires a login.

User avatar

Seems to not be scrapping users correctly, I will take a look at this.

Developer
Maintained by Community
Actor metrics
  • 133 monthly users
  • 99.8% runs succeeded
  • 0.51 days response time
  • Created in Jun 2020
  • Modified about 6 hours ago