This commit is contained in:
Chris Howell 2020-09-01 14:26:14 -07:00
commit 7a47fc83ad
5 changed files with 15 additions and 16 deletions

View File

@ -1,14 +1,10 @@
language: python language: python
python: python:
- "2.7" - "2.7"
- "3.4"
- "3.5" - "3.5"
- "3.6" - "3.6"
matrix: - "3.7"
include: - "3.8"
- python: 3.7
dist: xenial
sudo: true
install: install:
- pip install -r requirements.txt - pip install -r requirements.txt
script: script:

View File

@ -70,7 +70,7 @@ YouTubeTranscriptApi.get_transcripts(video_ids, languages=['de', 'en'])
If you want to list all transcripts which are available for a given video you can call: If you want to list all transcripts which are available for a given video you can call:
```python ```python
transcript_list = YouTubeTranscriptApi.list_transcripts(video_id, languages=['de', 'en']) transcript_list = YouTubeTranscriptApi.list_transcripts(video_id)
``` ```
This will return a `TranscriptList` object which is iterable and provides methods to filter the list of transcripts for specific languages and types, like: This will return a `TranscriptList` object which is iterable and provides methods to filter the list of transcripts for specific languages and types, like:

View File

@ -1,7 +1,7 @@
requests requests==2.24.0
# testing # testing
mock mock==3.0.5
httpretty httpretty==0.9.7
coverage coverage==5.2.1
coveralls coveralls==1.11.1

View File

@ -34,8 +34,11 @@ setuptools.setup(
url="https://github.com/jdepoix/youtube-transcript-api", url="https://github.com/jdepoix/youtube-transcript-api",
packages=setuptools.find_packages(), packages=setuptools.find_packages(),
classifiers=( classifiers=(
"Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: MIT License", "License :: OSI Approved :: MIT License",
"Operating System :: OS Independent", "Operating System :: OS Independent",
), ),

View File

@ -1,8 +1,8 @@
import requests import requests
try: try: # pragma: no cover
import http.cookiejar as cookiejar import http.cookiejar as cookiejar
CookieLoadError = (FileNotFoundError, cookiejar.LoadError) CookieLoadError = (FileNotFoundError, cookiejar.LoadError)
except ImportError: except ImportError: # pragma: no cover
import cookielib as cookiejar import cookielib as cookiejar
CookieLoadError = IOError CookieLoadError = IOError