CoolFace
Datasetpublic

aquiro1994/ds-python-up

sourceHugging Faceupdated 22d agoView on Hugging Face
0likes67downloads
environment_scraper.yml53 linesDownload Raw Back to _data
1# Conda environment name
2name: selenium_env
3
4# Channels for package download
5channels:
6  - defaults
7  - conda-forge
8
9# Dependencies
10dependencies:
11  - python>=3.8
12  - selenium==4.23.1
13  - beautifulsoup4
14  - requests
15  - webdriver-manager
16  - lxml
17  - html5lib
18  - pandas
19
20# Instructions:
21# 1. Save this file as 'environment.yml'.
22# 2. In the terminal, navigate to the directory where the file is saved.
23# 3. Run: conda env create -f environment.yml
24# 4. Activate the environment: conda activate selenium_env
25
26# Check available environments: conda info --envs
27# Activate/Deactivate an environment: conda activate / conda deactivate
28# Remove an environment: conda env remove -n environment_name
29
30# Note: Webdriver_manager automates driver management for Selenium.
31
32# Example usage of Selenium:
33# from selenium import webdriver
34# from selenium.webdriver.chrome.service import Service
35# from selenium.webdriver.chrome.options import Options
36# from webdriver_manager.chrome import ChromeDriverManager
37
38# # Set up Chrome options (optional)
39# chrome_options = Options()
40# chrome_options.add_argument("--headless")  # Run headless (optional)
41
42# # Create a WebDriver instance
43# driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=chrome_options)
44
45# # Open a webpage
46# driver.get("https://example.com")
47
48# # Print the title of the webpage
49# print(driver.title)
50
51# # Close the browser
52# driver.quit()
53