import requests
import re
import os
import sys
def get_downloadurl():
    #写你想要的美剧所在的地址
    resource_url = "http://yyetss.com/detail-4800.html"
    r = requests.get(resource_url, timeout=20)
    data = r.content
    data = data.decode('utf-8')
    download_list = re.findall(r'ed2k://\|file\|.{,200}\|/', data)
    if download_list:
        with open('result.txt', 'w') as f:
            for i in download_list:
                f.write('%s\n' % (i))
            print('Save as result.txt')
    else:
        print('No Resource')


def main():
    get_downloadurl()

if __name__ == '__main__':
    main()

虽然很简单,但是很开心