Skip to content

Commit

Permalink
v0.1 - add templates
Browse files Browse the repository at this point in the history
  • Loading branch information
wwakabobik committed Sep 12, 2023
1 parent d76eccb commit 88f7f4d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions utils/article_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@


def get_content(url):
"""
This function extracts content from internet page.
Args:
url: URL of internet page.
Returns:
Content of internet page.
"""
session = requests.Session()
response = session.get(url)
doc = Document(response.text)
Expand Down
1 change: 1 addition & 0 deletions utils/audio_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ def rms(self, frame):
:return: The RMS value of the audio frame.
"""
count = len(frame) / self.___sample_width
# pylint: disable=C0209
f_format = "%dh" % count
shorts = struct.unpack(f_format, frame)

Expand Down

0 comments on commit 88f7f4d

Please sign in to comment.