Code Monkey home page Code Monkey logo

icm-dead-video-links's Introduction

icm-dead-video-links

A tool to find dead video links in comments on icheckmovies.com.

Looks for video links in all comments left by a set of users, then queries video host APIs for video status. Currently supports the following video hosts:

  • Youtube
  • Vimeo
  • Dailymotion
  • Google Video

Dependencies

  • Python 3
  • requests
  • BeautifulSoup4

Usage

usage: find_dead.py [-h] [-s] [-c] [-t PAGES] [-f NUM] [-i] [-a] [username]

A tool to find dead video links in comments on icheckmovies.com.

Links that don't return 200 HTTP status are also checked
via a video host API (e.g. YouTube Data API v3)
for a more precise unavailability reason.

Requires Python 3.6+ with requests and bs4 libraries and a Google API key.

options:
  -h, --help            show this help message and exit

  username              find all dead video links by this user
  -s, --sort            sort users in result.md by dead links count
  -c, --convert         convert result.md to .csv

search users by charts:
  -t PAGES, --top PAGES
                        check users on the first N pages of profile charts
  -f NUM, --from NUM    start from the page #NUM of profile charts
  -i, --ignore-blacklist
                        don't skip checked users (see checked_users.txt)
  -a, --allchecks       use charts by all checks instead of only official ones

How to run:

  1. Create a virtual environment and install dependencies:
    $ python -m venv venv
    $ . venv/Scripts/activate
    $ pip install -r requirements.txt
  2. Create a new file youtube_data_api.key in the script directory and put your Google API key into it.
  3. Run the script:
    $ python find_dead.py

icm-dead-video-links's People

Contributors

monk-time avatar

Stargazers

 avatar  avatar

Watchers

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