GPT Scraper avatar
GPT Scraper
Try for free

Pay $9.00 for 1,000 pages

View all Actors
GPT Scraper

GPT Scraper

drobnikj/gpt-scraper
Try for free

Pay $9.00 for 1,000 pages

Extract data from any website and feed it into GPT via the OpenAI API. Use ChatGPT to proofread content, analyze sentiment, summarize reviews, extract contact details, and much more.

User avatar

Multiple error runs

Closed

Benjaminh opened this issue
4 months ago

every time i want to run a file, it give this error after 55 output "OpenaiAPIError: Sorry! We've encountered an issue with repetitive patterns in your prompt. Please try again with a different prompt."

User avatar

Benjaminh

4 months ago

and i have tried other prompts three times

User avatar

Hi, thanks a lot for reporting this! We've just updated the Actor to handle this error properly ;)

In your case the page "https://www.problicity.nl" has a few images, that have their raw data directly in the HTML file. OpenAI (chat GPT) is throwing the error as most of the input prompt is just the raw image data, not the actual page.

Since todays update, the Actor won't fail anymore, but the page still won't be processed with GPT. To fix this, you can add a simple CSS selector to the removeElementsCssSelector input option - img[src^="data:image/png;"] This should remove the images from the page and be processed by GPT ;)

Try it out and let me know how it works, thanks!

Developer
Maintained by Apify
Actor metrics
  • 319 monthly users
  • 97.2% runs succeeded
  • 9.8 days response time
  • Created in Mar 2023
  • Modified 13 days ago