-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into add_youtube_downloader
- Loading branch information
Showing
55 changed files
with
1,967 additions
and
389 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .client import BeautifulSoupClient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from bs4 import BeautifulSoup | ||
|
||
from automon.log import Logging | ||
|
||
log = Logging(name='BeautifulSoupClient', level=Logging.DEBUG) | ||
|
||
|
||
class BeautifulSoupClient(object): | ||
|
||
def __init__(self, bs: BeautifulSoup = None): | ||
self.bs = bs | ||
|
||
def read_markup(self, markup: str, features: str = 'lxml'): | ||
"""read markup with beautifulsoup""" | ||
try: | ||
self.bs = BeautifulSoup( | ||
markup=markup or self.markup, | ||
features=features | ||
) | ||
log.info(f'read_markup success ({len(markup)} B)') | ||
except Exception as e: | ||
log.error(f'read_markup failed ({len(markup)} B): {e}') | ||
|
||
return self |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .groups import FacebookGroups |
Oops, something went wrong.