This project is a web scraping utility designed to collect and store character information from the Resident Evil Database website. The project uses Python libraries such as requests, BeautifulSoup, tqdm, and pandas to gather, process, and store the data in various formats.
ATTENTION: This project do not have complete clean data, as the purpose was testing webscrapping on beautifulsoup!
The Resident Evil Database Scraper automates the extraction of character details from the Resident Evil Database website. It collects basic character information and appearances, organizing the data into a structured format for analysis or further use.
- Web Scraping: Utilizes
requestsandBeautifulSoupto parse HTML content and extract character information. - Data Collection: Gathers character details such as name, basic information, and appearances.
- Data Storage: Saves the collected data into multiple formats, including CSV, Parquet, and Pickle.
- Progress Tracking: Uses
tqdmto provide a progress bar for the scraping process.
- Python 3.x
requestsbeautifulsoup4tqdmpandas
- Clone the repository:
git clone https://github.com/yourusername/residentevil-database-scraper.git cd residentevil-database-scraper - Install dependencies::
pip install requests beautifulsoup4 tqdm pandas
- Run the Scraper:
python scrape_residentevil_database.py
- Access Data: The script saves the data in Dados_re.parquet and dados_Re.pkl formats. You can load these files using pandas for further analysis.
- get_content(url): Fetches the content of a webpage.
- get_basic_infos(soup): Extracts basic information about a character from the HTML soup.
- get_aparicoes(soup): Extracts the appearances of a character from the HTML soup.
- get_personagem_infos(url): Combines information extraction functions to get complete character data from a given URL.
- get_links(): Retrieves all character page links from the main character listing page.
- CSV: Uncomment the to_csv line in the script to export data to a CSV file.
- Parquet: Data is saved in Parquet format for efficient storage and retrieval.
- Pickle: Data is serialized to a Pickle file for Python-specific storage.
For questions or support, please contact anacarolina.cartola@gmail.com.