Remove feedparser
This commit is contained in:
4006
lib/feedparser.py
4006
lib/feedparser.py
File diff suppressed because it is too large
Load Diff
@@ -22,7 +22,6 @@ from future.builtins import str
|
||||
from bs4 import BeautifulSoup
|
||||
from xml.dom import minidom
|
||||
|
||||
import feedparser
|
||||
import collections
|
||||
import requests
|
||||
|
||||
@@ -276,17 +275,6 @@ def request_content(url, **kwargs):
|
||||
return response.content
|
||||
|
||||
|
||||
def request_feed(url, **kwargs):
|
||||
"""
|
||||
Wrapper for `request_response', which will return a feed object.
|
||||
"""
|
||||
|
||||
response = request_response(url, **kwargs)
|
||||
|
||||
if response is not None:
|
||||
return feedparser.parse(response.content)
|
||||
|
||||
|
||||
def server_message(response, return_msg=False):
|
||||
"""
|
||||
Extract server message from response and log in to logger with DEBUG level.
|
||||
|
Reference in New Issue
Block a user