Skip to content

bagirov3min/ParserProject

Repository files navigation

Currency and Top Movies Parser

English | Русский

Project Description

This project is a tool for parsing currency exchange rate data and a list of the top 100 movies from websites.

Use Cases

You can quickly obtain the required data. The modules are also easily integratable into any service.

The project includes the following components:

Parsing the Top 100 Movies List

  1. Open the Top 100 Movies page.
  2. Extract the list of movies.
  3. Display the list of movies in the terminal, one per line.

Parsing the Ruble-to-Dollar Exchange Rate

  1. Open the Currency Rates page.
  2. Extract the table with data on the ruble-to-dollar exchange rate.
  3. Display the last 40 dates, ruble-to-dollar exchange rate, and price changes in the terminal.

Creating a Graph of the Ruble-to-Dollar Exchange Rate

  1. Open the Currency Rates page.
  2. Extract the table with data on the ruble-to-dollar exchange rate.
  3. Create a graph depicting the ruble-to-dollar exchange rate changes over the last 40 days.

Instructions for Running

To run the parsing and view the results, follow these steps:

  1. Install the dependencies from the requirements.txt file:

    pip install -r requirements.txt
    
  2. To parse the list of movies, execute:

    python parser_films.py
    
  3. For parsing the ruble-to-dollar exchange rate and displaying data in the terminal:

    python parser_usd_cli.py
    
  4. To create a graph of the ruble-to-dollar exchange rate, execute:

    python parser_usd_plotlib.py
    

Sample Results:

Parsing the Top 100 Movies List:

  1. Citizen Kane (1941)
  2. Casablanca (1942)
  3. The Godfather (1972) ...

Parsing the Ruble-to-Dollar Exchange Rate:

Дата Курс рубля к доллару Изменение
20.07.2023 91.2046 +0.514
21.07.2023 90.8545 −0.3501
22.07.2023 90.3846 −0.4699

Exchange Rate Graph:

Picture

Authors

Name: Emin
Last: Bagirov
GitHub: @bagirov3min
Email: bagirov3min@gmail.com
Telegram: @Emin_pro

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages