Code Monkey home page Code Monkey logo

youtube-watch-history-to-csv's Issues

pip not installed but says successful in green anyway

Hello!

pip not installed but says successful in green anyway

root@DESKTOP-DBFSTSK:/mnt/c/folder/youtube-watch-history-to-csv# ./setup.sh

The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt install python3.10-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: ['/mnt/c/folder/.../yt-history-env/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

./setup.sh: line 7: yt-history-env/bin/activate: No such file or directory
./setup.sh: line 10: pip: command not found
./setup.sh: line 13: pip: command not found

**Setup completed successfully!**

You can activate the virtual environment by running:
source yt-history-env/bin/activate

error decoding unicode

The program does not decode a unicode char
M:\youtube-watch-history-to-csv-master>python yt-history-to-csv.py tidy-watch-history.html yt-history.csv Traceback (most recent call last): File "M:\youtube-watch-history-to-csv-master\yt-history-to-csv.py", line 120, in <module> main(sys.argv[1], sys.argv[2]) File "M:\youtube-watch-history-to-csv-master\yt-history-to-csv.py", line 116, in main parse_html(input_file, output_file, resume=True) File "M:\youtube-watch-history-to-csv-master\yt-history-to-csv.py", line 33, in parse_html contents = f.read() ^^^^^^^^ File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1776.0_x64__qbz5n2kfra8p0\Lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 3367: character maps to <undefined>
watch history.zip these are the raw files used in the command

yt-history.csv is empty

Just creates empty yt-history.csv file and saves nothing there.

$ python yt-history-to-csv.py ~/Downloads/tidy-watch-history.html ~/Downloads/yt-history.csv
Unable to determine the last processed index. Resuming from the beginning.
Parsing: https://www.youtube.com/watch?v=xCBrtopAG80
Parsing: https://www.youtube.com/watch?v=rAS9bCzs8U8
Parsing: https://www.youtube.com/watch?v=3Illx0WkCxU
Parsing: https://www.youtube.com/watch?v=Q92Z3wBrhnM
ERROR: [youtube] Q92Z3wBrhnM: Video unavailable. This video has been removed by the uploader
Failed to get metadata for https://www.youtube.com/watch?v=Q92Z3wBrhnM
Parsing: https://www.youtube.com/watch?v=wVYG1mu8Lg8
Parsing: https://www.youtube.com/watch?v=4j0yI41e0j4
Parsing: https://www.youtube.com/watch?v=ZcoOW8nqVP8
Parsing: https://www.youtube.com/watch?v=7mhaK-p8onM
Parsing: https://www.youtube.com/watch?v=2ANgfUJve00
^CParsing interrupted by user.
Parsing complete.

I checked it during and after but the output wile was 0length and empty. The .progress file has the index like 200 or something.

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.