remove feedparser

This commit is contained in:
j 2018-01-14 16:47:15 +01:00
commit 2d4bf9212a
4 changed files with 3 additions and 4 deletions

View file

@ -7,7 +7,6 @@ import re
from xml.dom.minidom import parseString
import json
import feedparser
import ox
from ox.cache import read_url, cache_timeout
@ -61,6 +60,7 @@ def get_video_info(id):
return info
def find(query, max_results=10, offset=1, orderBy='relevance'):
import feedparser
query = quote(query)
url = "http://gdata.youtube.com/feeds/api/videos?vq=%s&orderby=%s&start-index=%s&max-results=%s" % (query, orderBy, offset, max_results)
data = read_url(url)