Crunchyroll-XML-Decoder icon indicating copy to clipboard operation
Crunchyroll-XML-Decoder copied to clipboard

Fix auto catch

Open alzamer2 opened this issue 7 years ago • 1 comments

upgrade the code so it can catch the link of USA-only Anime

alzamer2 avatar Apr 22 '17 10:04 alzamer2

rss flux indicate just last season

if you want ddl all serie you nedd use this =

`def autocatch(): import requests, pickle with open('cookies') as f: cookies = requests.utils.cookiejar_from_dict(pickle.load(f)) session = requests.session() session.cookies = cookies del session.cookies['c_visitor'] data = {'Referer': 'http://crunchyroll.com/', 'Host': 'www.crunchyroll.com', 'User-Agent': 'Mozilla/5.0 Windows NT 6.1; rv:26.0 Gecko/20100101 Firefox/26.0'} aList = [] print 'indicate the url : ' url=raw_input() cr=open("crunchy.html","w") mykey = session.get(url).content cr.write(mykey) Z=open("crunchy.html","r") take = open("queue.txt", "w")

aList_t = re.findall('<a href="/(.+?)" title=', mykey)
for i in aList_t:
    aList.append('http://www.crunchyroll.com/'+i)
if aList != []:
    take = open("queue.txt", "w")
    take.write(u'#the any line that has hash before the link will be skiped\n')
    for i in aList:
        print >> take, i
    take.close()    
    subprocess.call('notepad.exe '+"queue.txt")`

rcyclope avatar Aug 09 '17 13:08 rcyclope