Giter Site home page Giter Site logo

sums-news-categories's Introduction

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'.

sums-news-categories's People

Contributors

nathanbillis avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.