AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

New selenium browser fails to retrieve data from for (example Twitter)

Open kristoffernolgren opened this issue 1 year ago • 3 comments

Duplicates

  • [X] I have searched the existing issues

Steps to reproduce 🕹

Try to use action browse_website to a page that is heavily reliant on javascript.

Current behavior 😯

Once auto-gpt tries to browse twitter accounts, the conclusions from auto-gpt can only detect

example: "Answer gathered from website: The text does not provide any information about recent tweets mentioning stocks. It is a message about enabling JavaScript to use Twitter.

Links: ['Help Center (https://help.twitter.com/using-twitter/twitter-supported-browsers)', 'Terms of Service (https://twitter.com/tos)', 'Privacy Policy (https://twitter.com/privacy)', 'Cookie Policy (https://support.twitter.com/articles/20170514)', 'Imprint (https://legal.twitter.com/imprint.html)']", <selenium.webdriver.chrome.webdriver.WebDriver (session="6ad00e143bf053610977dcee88cebaa5")>)

Expected behavior 🤔

Scraper manages JS and/or waits until site is fully loaded.

Your prompt 📝

Use the browse_website command to visit the Twitter accounts, the webpage to visit is https://twitter.com/[username]

kristoffernolgren avatar Apr 15 '23 12:04 kristoffernolgren

twitter recently forced API payments and changed up who could access their developer API. unless selenium is browsing with your login to get those tweets you will not be able to get that data unless you have a valid Developer API account/key.

mflanagan1041 avatar Apr 15 '23 13:04 mflanagan1041

For me, this happens for any site requesting cookies, inkl 4 out of 5 major news outlets tested, like cnbc, Reuter etc

kristoffernolgren avatar Apr 16 '23 05:04 kristoffernolgren

I would like to see a Javascript version of AutoGPT which will be able to make use of puppeteer-like scripts the way aicombinator does.

nileshtrivedi avatar Apr 18 '23 15:04 nileshtrivedi

Got a similar issue, as soon as it tries to browse a website i often get this site provides no info about.... it only talks about cookies etc. And then it fails to read the info on the page.

iller75 avatar Apr 22 '23 18:04 iller75

similar problem

Bubble007 avatar Apr 23 '23 19:04 Bubble007

This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.

github-actions[bot] avatar Sep 06 '23 21:09 github-actions[bot]

This issue was closed automatically because it has been stale for 10 days with no activity.

github-actions[bot] avatar Sep 18 '23 01:09 github-actions[bot]