Skip to content

This code will get all news articles and their associated categories. This interacts with Sums' Pluto API.

Notifications You must be signed in to change notification settings

YUSU-Dev/sums-news-categories

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SUMS News Categories

This code will get all news articles and their associated categories. This interacts with Sums' Pluto API.

Installation

Follow these steps to install and run the script:

  1. Clone the repository

    First, clone the repository to your local machine using git. Open your terminal and run:

    git clone https://github.com/YUSU-Dev/sums-news-categories
  2. Navigate to the project directory

    Change your current directory to the project directory:

    cd <project_directory>

    Replace <project_directory> with the name of the directory that was created when you cloned the repository.

  3. Create a virtual environment (optional)

    It's recommended to create a virtual environment to isolate the Python and pip packages used by this project. Use the following command to create a new virtual environment:

    python3 -m venv env

    Then, activate the virtual environment:

    • On macOS and Linux:

      source env/bin/activate
    • On Windows:

      .\env\Scripts\activate
  4. Install the required packages

    Install the required Python packages using pip:

    pip install -r requirements.txt
  5. Run the script

    Finally, you can run the script using the following command:

    python main.py

    The script will prompt you to enter your X-Site-Id. After you enter it, the script will fetch the data and write it into a CSV file named 'data.csv'.

About

This code will get all news articles and their associated categories. This interacts with Sums' Pluto API.

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages