Significant-Gravitas / AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
https://agpt.co
Other
168.12k stars 44.37k forks source link

How to use AutoGPT with login-only websites? #1948

Closed jsmith-dev closed 1 year ago

jsmith-dev commented 1 year ago

Discussed in https://github.com/Significant-Gravitas/Auto-GPT/discussions/918

Originally posted by **meadow-kun** April 12, 2023 For a particular pipeline I would like to use my personal LinkedIn account. It's not for stupid crazy scraping or so, just automating a task which is typically automated by other plugins. How can I setup and instruct AutoGPT to make use of this data source?
jsmith-dev commented 1 year ago

Working on this.

bjornfix commented 1 year ago

Yeah. Same issue here. I would not mind giving it access to our Google Workspace E-mail system as well, so it can help out replying to emails. Also, we use it for logins to social media accounts everywhere.

atreiou commented 1 year ago

Definitely following for control of my LinkedIn

hedonnn commented 1 year ago

Interested!

Bioblaze commented 1 year ago

I wrote code for handling google workspace email accounts

bjornfix commented 1 year ago

Fantastic!

jacksonblankenship commented 1 year ago

Since I'm already logged into all my accounts on my local Chrome profile, I added this line to web_selenium.py (lines 71-73) so the browser can use my logins. This would likely solve this issue for most people.

If you need to know where your profile is, go to chrome://version in Google Chrome and copy the path for Profile Path.

Obviously, this is just a solution for Chrome.

Screenshot 2023-04-18 at 8 05 04 PM
mathematicsofpaul commented 1 year ago

Could you elaborate what you mean by local Chrome profile? I've been trying to figure out how to get auto-gpt to launch the webscrapping process with my already logged in google profile a.k.a my google account, but for some reason it is simply just launching with a 'clean slate' browser instead.

Screen Shot 2023-04-20 at 11 24 06 pm

I want to launch with my own already logged in google profile because it has all my need logins for the webscrapper to use.

Screen Shot 2023-04-20 at 11 26 52 pm

The change above is definitely not working for me (well at least for my needs).

ntindle commented 1 year ago

Would love to see some of these comments in a plugin

mathematicsofpaul commented 1 year ago

@jacksonblankenship Would you have any input on this matter? :)

steelliberty commented 1 year ago

I need the same thing. I have seen autogpt open chrome and read data using selenium. filling two fields and clicking submit button should be easy. Is there anyway to have the agent execute code as part of a goal?

adamtaheri commented 1 year ago

Following. This sounds super easy; why can't the AI execute some selenium code? @jacksonblankenship I tried your solution but it didn't seem to work

jacksonblankenship commented 1 year ago

Following. This sounds super easy; why can't the AI execute some selenium code? @jacksonblankenship I tried your solution but it didn't seem to work

It was working fine for me a few weeks back. It got into my LinkedIn numerous times. I'm assuming some additional args are being passed now that are creating a conflict, not sure. I may be able to take a look later.

adamtaheri commented 1 year ago

Please let me know when you can, appreciate it!

On Wed, Apr 26, 2023 at 6:36 AM Jackson Blankenship < @.***> wrote:

Following. This sounds super easy; why can't the AI execute some selenium code? @jacksonblankenship https://github.com/jacksonblankenship I tried your solution but it didn't seem to work

It was working fine for me a week or two. Assuming some additional conflicting args are being passed now or something. I may be able to take a look later.

— Reply to this email directly, view it on GitHub https://github.com/Significant-Gravitas/Auto-GPT/issues/1948#issuecomment-1523437371, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVBAMDULLA5JXKBYDAV74TDXDEQG5ANCNFSM6AAAAAAXAHQW6I . You are receiving this because you commented.Message ID: @.***>

mathematicsofpaul commented 1 year ago

Thanks @jacksonblankenship . Could you elaborate where to look in order for us to fix the issue? I'm really new to Selenium and not sure where to start.

If you know what version of Autogpt you used that would be great too!

jacksonblankenship commented 1 year ago

Thanks @jacksonblankenship . Could you elaborate where to look in order for us to fix the issue? I'm really new to Selenium and not sure where to start.

If you know what version of Autogpt you used that would be great too!

I'm not very experienced in Python/Selenium, but I have used Node with Puppeteer and Playwright a lot. At the end of the day, Selenium, Puppeteer and Playwright are abstraction layers that make it easy to interface with Chromium.

https://www.chromium.org/chromium-projects/

This project happens to use Selenium, but don't focus too hard on that part. Understand that the end goal is to pass the correct arguments to the browser (i.e. Chromium).

adamtaheri commented 1 year ago

I’m on the latest version of that helps.

On Sat, Apr 29, 2023 at 11:35 AM Jackson Blankenship < @.***> wrote:

Thanks @jacksonblankenship https://github.com/jacksonblankenship . Could you elaborate where to look in order for us to fix the issue? I'm really new to Selenium and not sure where to start.

If you know what version of Autogpt you used that would be great too!

I'm not very experienced in Python/Selenium, but I have used Node with Puppeteer and Playwright a lot. At the end of the day, Selenium, Puppeteer and Playwright are abstraction layers that make it easy to interface with Chromium.

https://www.chromium.org/chromium-projects/

This project happens to use Selenium, but don't focus too hard on that part. Understand that the end goal is to pass the correct arguments to the browser (i.e. Chromium).

— Reply to this email directly, view it on GitHub https://github.com/Significant-Gravitas/Auto-GPT/issues/1948#issuecomment-1528846735, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVBAMDWQTTQ3JYPQBYOCMMTXDVNPFANCNFSM6AAAAAAXAHQW6I . You are receiving this because you commented.Message ID: @.***>

github-actions[bot] commented 1 year ago

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] commented 1 year ago

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