Giter Site home page Giter Site logo

new-media-data-analysis's Introduction

README.md

New Media Data Analysis Tools

This repository contains a collection of tools for new media data analysis. The tools are organized into three folders, each focused on a specific task:

  1. news-articles: Extracts text from news articles using the trafilatura library and stores the results in a CSV file.
  2. youtube-transcript: Downloads transcripts from YouTube videos using yt-dlp and packages them into an XLS file using a Python notebook.
  3. zeroshot-classification: Performs zero-shot classification on the downloaded texts using OpenAI's ChatGPT API.

These command line scripts read from input CSV/text files and produce output CSV files that can be loaded into Google Sheets or exported to Gephi for network analysis.

Folder Structure

.
├── news-articles
│ └── tra.py
├── youtube-transcript
│ ├── yt-transcripts.py
│ └── vtt.txt\_to\_xls.ipynb
├── zeroshot-classification
└─ zeroshot.pyi

Installation and Usage

  1. Clone the repository:

git clone https://github.com/username/new-media-data-analysis.git

  1. Navigate to the desired tool folder and install the required dependencies:

pip install -r requirements.txt

  1. Run the script with the required input files:

Running each script without parameter will list the required inputs. The repository contains various example input files in each subfolder.

License

GPLv3 or newer.

new-media-data-analysis's People

Contributors

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