Closed Amatefinde closed 5 months ago
Could you test:
from botasaurus import *
def add_arguments(data, options):
options.add_argument('--disable-dev-shm-usage')
options.add_argument('--no-sandbox')
@browser(headless=True, add_arguments=add_arguments)
def scrape_heading_task(driver: AntiDetectDriver, data):
# Navigate to the Omkar Cloud website
driver.get("https://www.omkar.cloud/")
# Retrieve the heading element's text
heading = driver.text("h1")
# Save the data as a JSON file in output/scrape_heading_task.json
return {"heading": heading}
if __name__ == "__main__":
# Initiate the web scraping task
scrape_heading_task()
oh, wow, its work really nice. thank you very much
when i try to run hello world script on vps (Ubuntu 22)
i obtain this error
is there any advices?