Giter Club home page Giter Club logo

metadatautility's Introduction

Metadata Utility

Automation for Digital Archives 2022, written in python. Interprets data from text files and writes to Excel file for easy copy and paste into master google sheet.

Python version 3.10+ required!

  • In Python 3.10, the match syntax similar switch was introduced. A module in this program uses match

Required dependencies

  • pandas
  • openpyxl
  • youtube-dl
  • pafy
  • pytube

Notes

I'm using the Jetbrains PyCharm IDE. Installed dependencies in the project folder's venv folder.

Since YouTube removed dislikes being shown, I edited the youtube-dl, backend_youtube_dl.py and commented out:

  • self._likes = self._ydl_info['like_count']
  • self._dislikes = self._ydl_info['dislike_count']
  • self._rating = self._ydl_info['average_rating']

Useful Links

General

Python

GUI Creation

Virtual Environments

Dependencies

Github

Note about Intel and ARM support

Support for intel and arm is weird. To get this to work in pycharm or even run this with the needed dependencies for this project, one must first open terminal, go to the venv bin directory of this project then type:

env /usr/bin/arch -x86_64 /bin/zsh/

conda deactivate

source $(pwd)/activate

python3 (path to main.py)

Using anaconda venv to run this on M1 architecture

I used anaconda package manager to solve the issue of M1 problems regarding the system architecture, x86_64 and arm64. I installed Anaconda and miniforge. I first installed anaconda-navigator, then installed miniforge via brew install miniforge. I then ran the command:

conda create --name (name of environment) python=3.10

conda activate (name of environment)

Now that the conda venv is activated, you can then use pip3 to install pip3 packages like pafy, youtube_dl, or pytube.

conda install (package name)

I used this new environment for the Python project.

Note about JetBrains PyCharm IDE environment interpreter

To add the Anaconda environment, I went to my project interpreter settings at the bottom right, and clicked add interpreter. I added a new conda environment, selected existing environment, and set the interpreter path to:

/Users/(username)/opt/anaconda3/envs/(environment name)/bin/python

The environment name is the one created in the previous section, using the conda create --name command. I set the conda executable path to:

/Users/(username)/opt/anaconda3/bin/conda

After adding, PyCharm should run the main.py flawlessly.

metadatautility's People

Contributors

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