I am running this simple code to scrape a website

from firecrawl import FirecrawlApp api_key = os.environ["FIRECRAWL_API_KEY"] app = FirecrawlApp(api_key=api_key) url = "https://atharvacoe.ac.in/" scraped_data = app.scrape_url(url) pprint(scraped_data) the response i am getting is PS C:\Users\DHRUV PATEL\Desktop\SCOGO\firecrawl\firecrawl> python test.py Traceback (most recent call last): File "C:\Users\DHRUV PATEL\Desktop\SCOGO\firecrawl\firecrawl\test.py", line 32, in <module> scraped_data = app.scrape_url(url) ^^^^^^^^^^^^^^^^^^^ File "C:\Users\DHRUV PATEL.conda\envs\firecrawl\Lib\site-packages\firecrawl\firecrawl.py", line 91, in scrape_url self._handle_error(response, 'scrape URL') File "C:\Users\DHRUV PATEL.conda\envs\firecrawl\Lib\site-packages\firecrawl\firecrawl.py", line 317, in _handle_error raise requests.exceptions.HTTPError(message, response=response) requests.exceptions.HTTPError: Payment Required: Failed to scrape URL. Insufficient credits even though i have 498 credits left
AtharvaCOE
Atharva College of Engineering
Home
3 Replies
Sachin
Sachin14mo ago
Hi @Dhruv Patel , from the looks of it, you might have already exhausted the available credits for your current plan or your plan might have expired. requests.exceptions.HTTPError: Payment Required: Failed to scrape URL. Insufficient credits
Dhruv Patel
Dhruv PatelOP14mo ago
I have not exhausted the credits
Sachin
Sachin14mo ago
Might be some bug then, cause I also got similar error yesterday. But that got resolved automatically after sometime.

Did you find this page helpful?