mibe / tested-videos

List video URLs in stories on tested.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Archived due to changes on the tested.com website.

tested-videos

A tool for listing video URLs in stories on tested.com.

This is done by downloading and parsing the official tested.com RSS feed. Every feed entry corresponds to a story. This story is in turn fetched and its content analyzed for videos.

Currently the following video providers are supported:

  • YouTube
  • Vimeo
  • Vine

Usage

usage: list-videos.py [-h] [--html] [--file FILE] [--hide-empty] [--reverse]
                      [--only-new]

List video URLs of stories on tested.com.

optional arguments:
  -h, --help    show this help message and exit
  --html        HTML output instead of plain text
  --file FILE   Load feed from a file instead from the Internet
  --hide-empty  Hide stories without videos
  --reverse     Display the stories in reversed order
  --only-new    Only display stories which were published since last invoke

Example

Command line:

list-videos.py --hide-empty --only-new --reverse

Output:

Loading feed...
List generated on 2014-03-30 00:56:56.043000:

A Landmark Episode of This Is Only a Test - 3/27/2014
  http://youtu.be/vWtfHiQx50U
--------------------------------------------------------------------------------

The Motion Picture Camera: Past, Present and Future
  http://vimeo.com/88675290
--------------------------------------------------------------------------------

Tested In-Depth: Sony a7 Full-Frame Mirrorless Camera
  http://youtu.be/zPd2OiDjI_c
--------------------------------------------------------------------------------

Makerbot Mystery Build: Failure is an Option
  http://youtu.be/bf_43POmSFE
--------------------------------------------------------------------------------

Tested Mailbag: Slamming Tim Tams and 3D-Printed Wonders
  http://youtu.be/jclNJThsO0E
--------------------------------------------------------------------------------

Requirements

Tested with Python 3.8.2, feedparser 5.2.1, lxml 4.5.0, Unidecode 1.1.1 and cssselect 1.1.0

Installation

Run pip install -r requirements.txt to install the dependencies with pip.

License

MIT License (see LICENSE.txt)

About

List video URLs in stories on tested.com

License:MIT License


Languages

Language:Python 100.0%