Commit Graph

256 Commits

Author SHA1 Message Date
jdepoix 46be97ae35
Merge pull request #108 from jdepoix/bugfix/ISSUE-107
added ability to create consent cookie
2021-03-31 16:03:20 +02:00
Jonas Depoix 9251be8462 added ability to create consent cookie 2021-03-31 15:59:57 +02:00
Jonas Depoix c90cf16484 v0.4.0 2021-03-22 19:17:29 +01:00
jdepoix 297fe03752
Merge pull request #105 from jdepoix/feature/ISSUE-23
Feature/issue 23
2021-03-22 19:13:20 +01:00
Jonas Depoix 943be911ec fixed travis ci url in readme 2021-03-22 19:06:46 +01:00
Jonas Depoix e69759f6d6 fixed test 2021-03-22 19:04:10 +01:00
Jonas Depoix 3781907943 Merge branch 'master' into feature/ISSUE-23 2021-03-22 18:54:07 +01:00
jdepoix c3f0cfca45
Merge pull request #103 from jdepoix/bugfix/ISSUE-80
adjusted CLI to be able to handle masked hyphens
2021-03-17 16:23:09 +01:00
Jonas Depoix 2f592a37a2 removed string formatting which is not supported in older python versions 2021-03-15 18:13:34 +01:00
Jonas Depoix a222195094 updated README 2021-03-15 18:06:08 +01:00
Jonas Depoix cf585e2175 refactored formatters to use format_transcript and format_transcripts 2021-03-15 17:57:44 +01:00
Jonas Depoix d314139329 added FormatterLoader 2021-03-15 17:16:20 +01:00
Jonas Depoix 71268dfad9 Merge branch 'feature/ISSUE-23' of https://github.com/crhowell/youtube-transcript-api into feature/ISSUE-23 2021-03-15 14:37:59 +01:00
jdepoix 842eed32ac
Merge pull request #100 from crhowell/bugfix/ISSUE-75
Bugfix/issue 75 Add object to classes
2021-03-15 10:39:35 +01:00
Jonas Depoix 72f035fa6d adjusted CLI to be able to handle masked hyphens 2021-03-15 10:34:05 +01:00
Chris Howell 35dca89ef2 add object to classes, fixes bugfix/ISSUE-75 2021-03-08 04:04:19 -08:00
Chris Howell baadc2f7f0 Merge master, fix readme conflicts 2021-03-02 07:48:17 -08:00
jdepoix cf0647f91f
Update README.md 2021-01-30 10:08:52 +01:00
jdepoix 90fc24eda4
Merge pull request #94 from kovan/master
Fix "video not available" being shown to the user when when YouTube starts asking for captcha resolution due to receiving too many requests from the same IP.
2021-01-29 09:11:20 +01:00
Your Name 23798f205d improve message as per jdepoix suggestion 2021-01-25 17:36:27 +01:00
Your Name dbf5eeafe6 Error message more descriptive 2021-01-22 14:18:56 +01:00
Your Name fb819c06e4 Fix test case name 2021-01-21 19:53:06 +01:00
Your Name 14c70359ba Fix "video not available" being shown to the user when when YouTube start asking for captcha resolution due to receiving too many requests from the same IP. Show instead an appropiate message.
To be able to keep making requests, the captcha must be solved in a browser and the browser cookie must be passed to youtube-transcript-api.
2021-01-21 19:43:29 +01:00
jdepoix 361986e221
Merge pull request #88 from jdepoix/feature/ISSUE-87
migrated to travis-ci.com
2020-10-20 11:08:14 +02:00
Jonas Depoix 2cd2e4b9ac Merge branch 'master' into feature/ISSUE-87 2020-10-20 11:00:18 +02:00
Jonas Depoix cd3dd0157f migrated to travis-ci.com 2020-10-20 10:53:50 +02:00
Chris Howell 138643a682 Merge branch 'master' into feature/ISSUE-23 2020-10-10 21:13:51 -07:00
jdepoix 8d1244f430
Merge pull request #84 from crhowell/bugfix/ISSUE-83
Bugfix/Issue 83 UnicodeDecodeError for Windows
2020-10-09 09:46:00 +02:00
Chris Howell 150c50cabe Fix since Python2.7 doesnt support encoding kwarg to open() 2020-10-08 14:29:26 -07:00
Chris Howell eb01e08b04 Add explicit utf-8 encoding for file I/O in test_api.py 2020-10-08 13:36:33 -07:00
Chris Howell d3cd5d1254 Add docs for formatters 2020-09-01 15:23:48 -07:00
Chris Howell 36f29c3058 Add a few initial test cases, could use more 2020-09-01 15:23:04 -07:00
Chris Howell f3dc6f508f Add new formatters.py module 2020-09-01 15:21:47 -07:00
Chris Howell 7a47fc83ad Merge branch 'master' of https://github.com/jdepoix/youtube-transcript-api 2020-09-01 14:26:14 -07:00
jdepoix 77e8137769
Merge pull request #76 from jdepoix/pin-dependency-versions
dependencies pinned
2020-08-31 15:24:06 +02:00
Jonas Depoix bc2a90bef7 removed version dependent import from coverage 2020-08-31 14:07:35 +02:00
Jonas Depoix b27510496c added python 3.8 support; dropped python 3.4 support due to build failure with new requests version 2020-08-31 13:43:19 +02:00
Jonas Depoix 8bab30a770 changed versions to python 2 supporting dependencies 2020-08-31 13:36:12 +02:00
Jonas Depoix 02b1940250 dependencies pinned 2020-08-31 13:29:03 +02:00
jdepoix b90326955a
Merge pull request #72 from dafiulh/patch-1
fix typo in documentation
2020-08-25 09:12:19 +02:00
Dafiul Haq 65659fd6ea
fix typo 2020-08-25 06:14:07 +07:00
Chris Howell 1e9b2c7727 Revert "Add formatters module"
Reverting again, apparently I had a misunderstanding of how to revert. Trying again.
This reverts commit dca4021dd7.
2020-08-21 12:21:12 -07:00
Chris Howell d75ad8c402 Revert "v0.3.1"
This reverts commit dec09fa48a.
2020-08-21 11:46:07 -07:00
Chris Howell 216abbe023 Add unittests for formatters.py 2020-07-09 20:14:36 -07:00
Chris Howell c4b8b5b18d formatters.py python 2 compliant and misc.
Remove use of ABC, not part of Python 2 and implementing ABCMeta changes between Python 2 and 3 so left it out entirely. Base class now raises NotImplementedError manually.

Fix parse_timecode issue with start and end times being identical

Replaced uses of F-strings with .format() also for compatibility.
2020-07-09 20:13:58 -07:00
Chris Howell 74d36a821e Update CLI to make use of new DELIMITER and combine method 2020-07-09 00:06:36 -07:00
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 1c0d584959 Add more functionality to TranscriptFormatter base class
Due to the behavior of the CLI and API, needed more flexibility for combining 1 or many transcripts for a given formatter.

- Now can specify a DELIMITER to separate multiple transcripts on.
- Can also specify how those items are combine overriding the combine class method.

Remove unused imports
Fix adjust some lines to meet PEP
2020-07-09 00:04:08 -07:00
Chris Howell 2c79bd563c Fix _api.py old kwarg 2020-07-08 15:25:32 -07:00
Chris Howell c78a37b115 Update _cli.py
Add formats factory instance that uses the `parsed_args.format` arg to retrieve the formatter class, defaults to JSON if not passed or if given a bad/mistyped name.

Might consider error in the case of a bad name given. Shouldn't be too difficult to add that ability if its wanted.
2020-07-08 15:23:10 -07:00