remove feedparser
This commit is contained in:
parent
aae2b07517
commit
2d4bf9212a
4 changed files with 3 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue