Substack Scraper avatar

Substack Scraper

Try for free

1 day trial then $20.00/month - No credit card required now

View all Actors
Substack Scraper

Substack Scraper

qpayre/substack-scraper
Try for free

1 day trial then $20.00/month - No credit card required now

The Substack Author Scraper is a powerful Apify actor that makes it easy for content creators to scrape and retrieve all posts from their favorite Substack authors. With structured data presented in a user-friendly format, analyzing and processing valuable information has never been easier.

LU

Main function - threw an exception

Closed

lusavkaedu opened this issue
6 months ago

The main function of the Actor threw an exception. this is not a subscription absed substack account.

2024-04-03T09:15:39.906Z --- Logging error --- 2024-04-03T09:15:39.907Z Traceback (most recent call last): 2024-04-03T09:15:39.909Z File "/usr/local/lib/python3.11/site-packages/redis/connection.py", line 264, in connect 2024-04-03T09:15:39.911Z sock = self.retry.call_with_retry( 2024-04-03T09:15:39.914Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-04-03T09:15:39.920Z File "/usr/local/lib/python3.11/site-packages/redis/retry.py", line 46, in call_with_retry 2024-04-03T09:15:39.922Z return do() 2024-04-03T09:15:39.923Z ^^^^ 2024-04-03T09:15:39.925Z File "/usr/local/lib/python3.11/site-packages/redis/connection.py", line 265, in 2024-04-03T09:15:39.927Z lambda: self._connect(), lambda error: self.disconnect(error) 2024-04-03T09:15:39.929Z ^^^^^^^^^^^^^^^ 2024-04-03T09:15:39.930Z File "/usr/local/lib/python3.11/site-packages/redis/connection.py", line 627, in _connect 2024-04-03T09:15:39.932Z raise err 2024-04-03T09:15:39.934Z File "/usr/local/lib/python3.11/site-packages/redis/connection.py", line 615, in _connect 2024-04-03T09:15:39.936Z sock.connect(socket_address) 2024-04-03T09:15:39.937Z OSError: [Errno 99] Cannot assign requested address 2024-04-03T09:15:39.939Z 2024-04-03T09:15:39.941Z During handling of the above exception, another exception occurred: 2024-04-03T09:15:39.942Z 2024-04-03T09:15:39.944Z Traceback (most recent call last): 2024-04-03T09:15:39.946Z File "/usr/local/lib/python3.11/site-packages/arb_logger/logger.py", line 40, in emit 2024-04-03T09:15:39.948Z self.redis_client.xadd(self.redis_key.split(':')[0], record_dict) 2024-04-03T09:15:39.949Z File "/usr/local/lib/python3.11/site-packages/redis/commands/core.py", line 3551, in xadd 2024-04-03T09:15:39.951Z return self.execute_command("XADD", name, *pieces) 2024-04-03T09:15:39.953Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-04-03T09:15:39.955Z File "/usr/local/lib/python3.11/site-packages/redis/client.py", line 533, in execute_command 2024-04-03T09:15:39.956Z conn = self.connection or pool.get_connection(command_name, **options) 2024-04-03T09:15:39.958Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-04-03T09:15:39.960Z File "/usr/local/lib/python3.11/site-packages/redis/connection.py", line 1086, in get_connection 2024-04-03T09:15:39.962Z connection.connect() 2024-04-03T09:15:39.963Z File "/usr/local/lib/python3.11/site-packages/redis/connection.py", line 270, in connect 2024-04-03T09:15:39.965Z raise ConnectionError(self._error_message(e)) 2024-04-03T09:15:39.966Z redis.exceptions.ConnectionError: Error 99 connecting to localhost:6379. Cannot assign requested address. 2024-04-03T09:15:39.968Z Call stack: 2024-04-03T09:15:39.969Z File "", line 198, in _run_module_as_main 2024-04-03T09:15:39.971Z File "", line 88, in _run_code 2024-04-03T09:15:39.973Z File "/usr/src/app/src/main.py", line 19, in 2024-04-03T09:15:39.974Z asyncio.run(main()) 2024-04-03T09:15:39.976Z File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run 2024-04-03T09:15:39.978Z return runner.run(main) 2024-04-03T09:15:39.980Z File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run 2024-04-03T09:15:39.982Z return self._loop.run_until_complete(task) 2024-04-03T09:15:39.983Z File "/usr/local/lib/python3.11/asyncio/base_events.py", line 640, in run_until_complete 2024-04-03T09:15:39.985Z self.run_forever() 2024-04-03T09:15:39.987Z File "/usr/local/lib/python3.11/asyncio/base_events.py", line 607, in run_forever 2024-04-03T09:15:39.989Z self._run_once() 2024-04-03T09:15:39.995Z File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1922, in _run_once 2024-04-03T09:15:39.997Z handle._run() 2024-04-03T09:15:39.999Z File "/usr/local/lib/python3.11/asyncio/events.py", line 80, in _run 2024-04-03T09:15:40.000Z self._context.run(self._callback, *self._args) 2024-04-03T09:15:40.002Z File "/usr/src/app/src/main.py", line 43, in main 2024-04-03T09:15:40.004Z data = await scrap(actor_input) 2024-04-03T09:15:40.006Z File "/usr/src/app/src/main.py", line 31, in scrap 2024-04-03T09:15:40.008Z articles = [ArticleScraper.scrap(post) for post in posts] 2024-04-03T09:15:40.010Z File "/usr/src/app/src/main.py", line 31, in 2024-04-03T09:15:40.012Z articles = [ArticleScraper.scrap(post) for post in posts] 2024-04-03T09:15:40.013Z File "/usr/src/app/src/substack_scraper/article_scraper.py", line 30, in scrap 2024-04-03T09:15:40.015Z LOGGER.error('rate limited, please calm down') 2024-04-03T09:15:40.017Z File "/usr/local/lib/python3.11/logging/init.py", line 1518, in error 2024-04-03T09:15:40.018Z self._log(ERROR, msg, args, **kwargs) 2024-04-03T09:15:40.020Z File "/usr/local/lib/python3.11/logging/init.py", line 1634, in _log 2024-04-03T09:15:40.022Z self.handle(record) 2024-04-03T09:15:40.024Z File "/usr/local/lib/python3.11/logging/init.py", line 1644, in handle 2024-04-03T09:15:40.025Z self.callHandlers(record) 2024-04-03T09:15:40.027Z File "/usr/local/lib/python3.11/logging/init.py", line 1706, in callHandlers 2024-04-03T09:15:40.029Z hdlr.handle(record) 2024-04-03T09:15:40.031Z File "/usr/local/lib/python3.11/logging/init.py", line 978, in handle 2024-04-03T09:15:40.032Z self.emit(record) 2024-04-03T09:15:40.034Z File "/usr/local/lib/python3.11/site-packages/arb_logger/logger.py", line 46, in emit 2024-04-03T09:15:40.036Z self.handleError(record) 2024-04-03T09:15:40.038Z Message: 'rate limited, please calm down' 2024-04-03T09:15:40.039Z Arguments: () 2024-04-03T09:15:40.041Z ERROR Actor failed with an exception 2024-04-03T09:15:40.043Z Traceback (most recent call last): 2024-04-03T09:15:40.044Z File "/usr/src/app/src/main.py", line 43, in main 2024-04-03T09:15:40.046Z data = await scrap(actor_input) 2024-04-03T09:15:40.048Z ^^^^^^^^^^^^^^^^^^^^^^^^ 2024-04-03T09:15:40.050Z File "/usr/src/app/src/main.py", line 31, in scrap 2024-04-03T09:15:40.051Z articles = [ArticleScraper.scrap(post) for post in posts] 2024-04-03T09:15:40.053Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-04-03T09:15:40.055Z File "/usr/src/app/src/main.py", line 31, in 2024-04-03T09:15:40.057Z articles = [ArticleScraper.scrap(post) for post in posts] 2024-04-03T09:15:40.059Z ^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-04-03T09:15:40.060Z File "/usr/src/app/src/substack_scraper/article_scraper.py", line 31, in scrap 2024-04-03T09:15:40.062Z raise ValueError('rate limited, please calm down') 2024-04-03T09:15:40.064Z ValueError: rate limited, please calm down 2024-04-03T09:15:40.065Z INFO Exiting actor ({"exit_code": 91})

qpayre avatar

QPS (qpayre)

6 months ago

Hello we are looking to fix it. Thanks for your message

qpayre avatar

QPS (qpayre)

5 months ago

Hello, the issue has been fixed

Developer
Maintained by Community
Actor metrics
  • 12 monthly users
  • 4 stars
  • 74.1% runs succeeded
  • 7.5 days response time
  • Created in Apr 2023
  • Modified 6 months ago