瀏覽代碼

v2.1.0
- rename project

Cheskel Twersky 4 年之前
父節點
當前提交
169ea4e338
共有 8 個文件被更改,包括 26 次插入26 次删除
  1. 10 10
      README.md
  2. 2 2
      docs/conf.py
  3. 3 3
      docs/index.rst
  4. 0 3
      list_youtube_channel/__init__.py
  5. 3 0
      scrapetube/__init__.py
  6. 0 0
      scrapetube/scrapetube.py
  7. 6 6
      setup.py
  8. 2 2
      tests/test.py

+ 10 - 10
README.md

@@ -1,5 +1,5 @@
-# List Yuotube channel
-This module was originally made to get a list of all the videos from a Youtube channel, but was then extended to include some other functionality.
+# Scrapetube
+This module will help you scrape youtube without the official youtube api and without selenium.
 
 With this module you can:
 
@@ -11,7 +11,7 @@ With this module you can:
 # Installation
 
 ```bash
-pip3 install list_youtube_channel
+pip3 install scrapetube
 ```
 
 # Usage
@@ -19,9 +19,9 @@ Here a few short code examples.
 
 ## Get all videos for a channel
 ```python
-import list_youtube_channel
+import scrapetube
 
-videos = list_youtube_channel.get_channel("UCCezIgC97PvUuR4_gbFUs5g")
+videos = scrapetube.get_channel("UCCezIgC97PvUuR4_gbFUs5g")
 
 for video in videos:
     print(video['videoId'])
@@ -29,9 +29,9 @@ for video in videos:
 
 ## Get all videos for a playlist
 ```python
-import list_youtube_channel
+import scrapetube
 
-videos = list_youtube_channel.get_playlist("PL-osiE80TeTt2d9bfVyTiXJA-UTHn6WwU")
+videos = scrapetube.get_playlist("PL-osiE80TeTt2d9bfVyTiXJA-UTHn6WwU")
 
 for video in videos:
     print(video['videoId'])
@@ -39,9 +39,9 @@ for video in videos:
 
 ## Make a search
 ```python
-import list_youtube_channel
+import scrapetube
 
-videos = list_youtube_channel.get_search("python")
+videos = scrapetube.get_search("python")
 
 for video in videos:
     print(video['videoId'])
@@ -49,4 +49,4 @@ for video in videos:
 
 # Full Documentation
 
-[https://list-youtube-channel.readthedocs.io/en/latest/](https://list-youtube-channel.readthedocs.io/en/latest/)
+[https://scrapetube.readthedocs.io/en/latest/](https://scrapetube.readthedocs.io/en/latest/)

+ 2 - 2
docs/conf.py

@@ -2,10 +2,10 @@
 import os
 import sys
 sys.path.insert(0, os.path.abspath('../'))
-from list_youtube_channel import __version__ as release
+from scrapetube import __version__ as release
 
 
-project = 'List youtube channel'
+project = 'Scrapetube'
 copyright = '2021, Cheskel Twersky'
 author = 'Cheskel Twersky'
 

+ 3 - 3
docs/index.rst

@@ -1,7 +1,7 @@
 
-Welcome to List youtube channel's documentation!
+Welcome to Scrapetube's documentation!
 ================================================
-This module was originally made to get a list of all the videos from a Youtube channel, but was then extended to include some other functionality.
+This module will help you scrape youtube without the official youtube api and without selenium.
 
 With this module you can:
 
@@ -13,7 +13,7 @@ With this module you can:
 
 Reference
 =========
-.. currentmodule:: list_youtube_channel
+.. currentmodule:: scrapetube
 
 .. autofunction:: get_channel
 

+ 0 - 3
list_youtube_channel/__init__.py

@@ -1,3 +0,0 @@
-from .get_channel import get_channel, get_search, get_playlist
-
-__version__ = '2.0.0'

+ 3 - 0
scrapetube/__init__.py

@@ -0,0 +1,3 @@
+from .scrapetube import get_channel, get_search, get_playlist
+
+__version__ = '2.1.0'

+ 0 - 0
list_youtube_channel/get_channel.py → scrapetube/scrapetube.py


+ 6 - 6
setup.py

@@ -1,5 +1,5 @@
 from setuptools import setup
-from list_youtube_channel import __version__
+from scrapetube import __version__
 
 
 
@@ -11,18 +11,18 @@ with open('requirements.txt', encoding='utf-8') as f:
     requirements = [r.strip() for r in f]
 
 setup(
-    name = 'list_youtube_channel',
+    name = 'scrapetube',
     version = __version__,
-    packages = ['list_youtube_channel'],
+    packages = ['scrapetube'],
     include_package_data = True,
-    url = 'https://github.com/dermasmid/list_youtube_channel',
+    url = 'https://github.com/dermasmid/scrapetube',
     license = 'MIT',
     long_description = readme,
     long_description_content_type = 'text/markdown',
     author = 'Cheskel Twersky',
     author_email = 'twerskycheskel@gmail.com',
-    description = 'Get all videos for a Youtube channel',
-    keywords = 'youtube python channel videos list get',
+    description = 'Scrape youtube without the official youtube api and without selenium',
+    keywords = 'youtube python channel videos search playlist list get',
     classifiers = [
         "Programming Language :: Python :: 3",
         "License :: OSI Approved :: MIT License",

+ 2 - 2
tests/test.py

@@ -9,10 +9,10 @@ else:
 
 sys.path.insert(0, '/'.join(os.path.dirname(os.path.realpath(__file__)).split(separator)[:-1]))
 
-import list_youtube_channel
+import scrapetube
 
 
-videos = list_youtube_channel.get_channel("UC9-y-6csu5WGm29I7JiwpnA", sort_by='popular')
+videos = scrapetube.get_channel("UC9-y-6csu5WGm29I7JiwpnA", sort_by='popular')
 
 for video in videos:
     print(video['videoId'])