GithubHelp home page GithubHelp logo

tibhannover / c3voc_avp_import Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 1.0 48 KB

Scripts for importing of CCC conference videos to the TIB AV Portal FTP server.

Home Page: https://av.tib.eu/search?q=ccc

Shell 4.48% Python 95.52%
ccc tib multimedia-repository c3voc library-automation code4lib tib-av-portal conference video ccc-conferences

c3voc_avp_import's Introduction

C3VOC <-> AV Portal Download Script

This script collection downloads videos from CCC conferences, according to the given schedule, as well as their metadata and supplements (e.g., PDF slides) for the TIB AV Portal.

For proper working of the scripts, a schedule file of the conference, the "Fahrplan", usually: schedule.xml, should be available and put into the root directory (but any other path works too). I.e., the final directory structure, before the download can start, should be something like the following:

ccc_avp_import/
├── ccc_download
├── get_attachments.py
├── get_videos_and_xml.py
├── install.sh
├── README.md
└── schedule.xml

A list of currently published schedules is available under https://c3voc.de/wiki/events_tib.

It is also possible to use the URL of the schedule, e.g., by copying it from the list above. In this case, the schedule will be temporarily saved and deleted after the videos have been downloaded. (see also Usage section)

Dependencies

You will also need to install additional python modules to run the scripts. You can install them either with pip or the package manager of your OS. In the best case, you have all of them installed already, so that the script won't complain. Following dependencies are usually needed to be installed on a "clean" Ubuntu or Debian machine:

sudo apt install python-pycurl
pip install requests lxml python-magic

Install

./install.sh

Installation is optional

The scripts will be installed in your /usr/local/bin, however you can modify the path in install.sh.

Usage

If installed

ccc_download [option] [schedule]

If NOT installed

./ccc_download [option] [schedule]

Available Options

-f (path to local schedule)
-l (URL of the schedule)

Examples

Remote schedule (will be automatically removed after the video download process is complete)

ccc_download -l https://fahrplan.events.ccc.de/congress/2018/Fahrplan/schedule.xml

Download and use local schedule

wget https://fahrplan.events.ccc.de/congress/2018/Fahrplan/schedule.xml
./ccc_download -f schedule.xml

All of the videos, metadata, and supplements will be saved into the videos_c3voc directory, which will be created if it doesn't exist yet.

c3voc_avp_import's People

Contributors

cenetp avatar katrinleinweber avatar saerdnaer avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

saerdnaer

c3voc_avp_import's Issues

change label of fahrplan link

The fahrplan.events.ccc.de label in following code snipped should be automatically extracted from the link variable

metadata = metadata + '''<additionalMaterial additionalMaterialType="URL" additionalMaterialTitle="fahrplan.events.ccc.de" relationType="isCitedBy">'''\
+ link + '''</additionalMaterial>'''
metadata = metadata + '''</additionalMaterials>

For example at https://av.tib.eu/media/43569 it should be labeled https://talks.2019.foss4g.org/
temp

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.