Commit Graph

31 Commits

Author SHA1 Message Date
Chris Howell 5861bdb104 Remove json.dumps from test_api.py
Remove unnecessary changes to tests, revert assertions back to how they were.

Remove unnecessary join from formatter in `_api.py`
2020-07-09 00:06:14 -07:00
Chris Howell 2c79bd563c Fix _api.py old kwarg 2020-07-08 15:25:32 -07:00
Chris Howell b4592043dc Add format kwarg to method calls to pass around
Add format kwarg that defaults to None which still gets interpreted to use JSON when its not passed. This kwarg was given to `.get_transcripts()` and `.get_transcript()` since one relies on the other therefore can forward the kwarg.
2020-07-08 15:20:47 -07:00
danielcliu 31b8f4a179 Redid errors for cookies, improved testing coverage 2020-01-30 21:53:18 -08:00
danielcliu 42d4f59e01 Moved cookie loader to its own function, made errors for cookies failing 2020-01-27 21:46:37 -08:00
danielcliu 67604ec46c Made testing more robust 2020-01-22 22:35:35 -08:00
danielcliu f9e553ebaf Added cli support, fixed testing 2020-01-20 23:04:46 -08:00
danielcliu 02b1978217 Added cookies parameter to api class methods 2020-01-15 22:48:00 -08:00
Jonas Depoix f8416ab004 added new params to cli to make new features accessible using the cli 2019-12-30 17:36:48 +01:00
Jonas Depoix 4b75a47a74 get_transcripts now returns a list of exceptions instead of video ids of failed videos 2019-12-30 16:13:18 +01:00
Jonas Depoix 1bc5087575 added public list_transcripts method 2019-12-30 15:20:47 +01:00
Jonas Depoix c2c49c3c17 fixed bug; added doctstrings for public methods 2019-12-11 11:42:14 +01:00
Jonas Depoix df417be915 refactored the way transcript information is retrieved and thereby improved error messages 2019-12-08 14:40:57 +01:00
danielcliu 54ef72fafd Improve Name regex to use 1 group, find first & 2019-11-11 19:58:12 -08:00
danielcliu d224b02a80 Languages argument defaults to a tuple instead of a list. 2019-11-10 22:44:24 -08:00
danielcliu c7cb3117be Removed unnecessary language variables, sort split matches by len while ignoring name arguement 2019-11-06 21:20:51 -08:00
danielcliu db7b8524dc Removed another f-string instance 2019-10-22 21:03:41 -07:00
danielcliu 630b33f3b8 Removed fstrings to make compatable with python 3.5 and lower 2019-10-22 20:37:46 -07:00
danielcliu 8fb9e75ba1 Formatted list comprehension for readability 2019-10-21 22:21:32 -07:00
danielcliu de1ddf0824 Implemented code to more thoroughly find a lanuages captions 2019-10-16 22:01:30 -07:00
Jonas Depoix 5d0e407f89 adjusted to changes in YouTube webclient 2019-10-09 13:21:30 +02:00
Jonas Depoix e2e1567785 adjusted to changes in YouTube webclient 2019-10-07 18:44:24 +02:00
Jonas Depoix c65cf27def fixed bug reported in ISSUE-19 2019-07-22 13:11:52 +02:00
Jonas Depoix 0151413ad1 API no longer logs to error 2019-07-15 15:48:01 +02:00
Jonas Depoix a1e66a0158 updated error message 2019-06-20 16:43:53 +02:00
Danny Aziz 86cd1666c0 Rebased on PR #11 and added tests 2019-03-16 16:23:42 +00:00
Jonas Depoix 94e4e4063f test suite and corresponding tooling added 2019-03-14 17:04:34 +01:00
Jonas Depoix 18fb0cbaec YouTubeTranscriptApi now supports retrieving transcripts for given languages 2019-02-21 12:55:03 +01:00
Jonas Depoix 5e1f020ccf fixed bug where xml data was also returned when using cli 2018-07-15 10:57:14 +02:00
Jonas Depoix 33a2ec721c faulty imports fixed 2018-07-03 13:43:27 +02:00
Jonas Depoix 27a9d64938 project structure reworked to be compatible with pypi 2018-07-03 12:49:22 +02:00