-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
converted string 'xmlcharrefreplace' to 'utf-8' encoding
- Loading branch information
Showing
2 changed files
with
5 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
#!/usr/bin/env python | ||
|
||
__appname__ = "pysub-dl" | ||
__version__ = "0.2.7" | ||
__version__ = "0.2.8" | ||
__author__ = "iamsudip <[email protected]>" | ||
__license__ = "MIT" | ||
|
||
import argparse | ||
import sys | ||
from HTMLParser import HTMLParser | ||
import requests | ||
from BeautifulSoup import BeautifulSoup | ||
from download_it import download_file | ||
|
@@ -54,10 +55,11 @@ def alternate_search(): | |
response = requests.get(url) | ||
soup = BeautifulSoup(response.text) | ||
del response | ||
parser = HTMLParser() | ||
counter = 1 | ||
for popular in soup.findAll('div', attrs={'class' : 'title'}): | ||
for link in popular.findAll('a'): | ||
movie_list[link.text] = 'http://subscene.com' + link.get('href') + '/' + args.language | ||
movie_list[parser.unescape(link.text)] = 'http://subscene.com' + link.get('href') + '/' + args.language | ||
for key in movie_list.keys(): | ||
print str(counter) + ". " + key | ||
temp[counter] = key | ||
|
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