Increment version

This commit is contained in:
taizan-hokuto
2020-02-29 08:04:14 +09:00
parent b302454083
commit 55a58f532d
6 changed files with 4 additions and 15 deletions

View File

@@ -2,7 +2,7 @@
pytchat is a python library for fetching youtube live chat without using yt api, Selenium, or BeautifulSoup. pytchat is a python library for fetching youtube live chat without using yt api, Selenium, or BeautifulSoup.
""" """
__copyright__ = 'Copyright (C) 2019 taizan-hokuto' __copyright__ = 'Copyright (C) 2019 taizan-hokuto'
__version__ = '0.0.5.3' __version__ = '0.0.6.1'
__license__ = 'MIT' __license__ = 'MIT'
__author__ = 'taizan-hokuto' __author__ = 'taizan-hokuto'
__author_email__ = '55448286+taizan-hokuto@users.noreply.github.com' __author_email__ = '55448286+taizan-hokuto@users.noreply.github.com'

View File

@@ -4,7 +4,7 @@ from . import mylogger
headers = { headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36'} 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36'}
def logger(module_name: str, loglevel = logging.DEBUG): def logger(module_name: str, loglevel = None):
module_logger = mylogger.get_logger(module_name, loglevel = loglevel) module_logger = mylogger.get_logger(module_name, loglevel = loglevel)
return module_logger return module_logger

View File

View File

@@ -9,7 +9,7 @@ logger = config.logger(__name__)
headers=config.headers headers=config.headers
class Extractor: class Extractor:
def __init__(self, video_id, div, callback = None, processor = None): def __init__(self, video_id, div = 1, callback = None, processor = None):
if not isinstance(div ,int) or div < 1: if not isinstance(div ,int) or div < 1:
raise ValueError('div must be positive integer.') raise ValueError('div must be positive integer.')
elif div > 10: elif div > 10:

View File

@@ -124,7 +124,6 @@ class VideoInfo:
return None return None
def get_title(self): def get_title(self):
print(self._renderer)
if self._renderer.get("title"): if self._renderer.get("title"):
return [''.join(run["text"]) return [''.join(run["text"])
for run in self._renderer["title"]["runs"]][0] for run in self._renderer["title"]["runs"]][0]

View File

@@ -16,16 +16,6 @@ def _test_requirements():
for name in open(path.join( for name in open(path.join(
root_dir, 'requirements_test.txt')).readlines()] root_dir, 'requirements_test.txt')).readlines()]
txt= ''
with open('README.MD', 'r', encoding='utf-8') as f:
txt = f.read()
with open('README1.MD', 'w', encoding='utf-8', newline='\n') as f:
f.write(txt)
remove("README.MD")
rename("README1.MD","README.MD")
with open(path.join(root_dir, package_name, '__init__.py')) as f: with open(path.join(root_dir, package_name, '__init__.py')) as f:
init_text = f.read() init_text = f.read()
version = re.search( version = re.search(
@@ -55,7 +45,7 @@ with open('README.md', encoding='utf-8') as f:
setup( setup(
name=package_name, name=package_name,
packages=find_packages(exclude=['*log.txt','*tests']), packages=find_packages(exclude=['*log.txt','*tests','*testrun']),
version=version, version=version,
url=url, url=url,
author=author, author=author,