Skip to content

Repository files navigation

Web Crawling Exercise

Introduction

This is the first exercise to learn parallel and non-parallel programming in web crawling. The implementations might not be correct, and could be a source of shame next year :D

Next year: This exercise also includes a test of Scrapy, a popular Python library for web scraping.

I scraped a website that lists the salaries of Spanish politicians. If you're interested in knowing the salaries of these individuals, this can provide a good first approximation. However, please note that this only includes a small portion of their total income and some of them. We have so much, if you need to import politicians the spaniards are a good option.

Usage

First, open a terminal and clone from github.com 'git clone https://github.com/

To use the project, follow these steps:

  1. Install the required Python packages: pip install -r requirements.txt
  2. Run the scripts: python sueldos_asincyo.py, python sueldos_partidos.py and python sueldos_sincronos.py
  3. If you want to run the Scrapy spider go inside sueldos_scrapy folder and run scrapy crawl sueldos -o output.csv adapting the output to your prefered format.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! If you have any ideas or improvements, feel free to open an issue or submit a pull request.

Contact

If you have any questions or need further assistance, you can reach out to us at egoitzabilleira@protonmail.com.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages