omkarcloud / botasaurus

The All in One Framework to build Awesome Scrapers.
https://www.omkar.cloud/botasaurus/
MIT License
1.16k stars 104 forks source link

profile not work #51

Closed luckybk93 closed 4 months ago

luckybk93 commented 5 months ago

I used @browser( headless=True, profile='my-profile', proxy="http://your_proxy_address:your_proxy_port", user_agent=bt.UserAgents.user_agent_106 ) but it not work, I don't know where the profile was created Thanks!

Chetan11-dev commented 5 months ago

Run

from botasaurus import *

@browser(
  headless=True, 
  profile='my-profile', 
#   proxy="http://your_proxy_address:your_proxy_port", TODO: Replace with your own proxy
  user_agent=bt.UserAgent.user_agent_106
)
def scrape_heading_task(driver: AntiDetectDriver, data):
    driver.get("https://www.omkar.cloud/")
    driver.prompt()

scrape_heading_task()
luckybk93 commented 5 months ago

Where is profile save? I can't find where my profile is saved. I also tried logging in to my google account, then reopening the profile, but it still wasn't saved. I think the profile has been newly created. Thanks!

Chetan11-dev commented 5 months ago

It's in profiles/ folder

luckybk93 commented 4 months ago

Thanks. I have updated to the latest version. And it worked