GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Python/Get_U2Music at master · waterpeitw/Python Expand file tree/ Copy pathGet_U2MusicMore file actions 64 lines (46 loc) · 1.31 KB / Copy pathGet_U2MusicFile metadata and controls64 lines (46 loc) · 1.31 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 #-*- coding: utf-8 -*- #-*- coding: cp950 -*- import requests import re import sys import time from threading import * from bs4 import BeautifulSoup def SaveToMp3(dic): respost = requests.post("https://dvr.yout.com/mp3",data=dic) with open(dic['title']+".mp3", "wb") as file: file.write(respost.content) print "[+] "+dic['title']+" download Sucess!!" def GetYoutThingy(dic): resget = requests.get("https://yout.com/video/"+dic['video_id']) m = re.search('var thingy = (.+?);',resget.text) dic['thingy'] = m.group(1) def GetYoutubeName(dic): strtemp ="https://www.youtube.com/watch?v="+dic['video_id'] resget = requests.get(strtemp) soup = BeautifulSoup(resget.text) #print soup.select('title')[0].text #print soup.select('title')[0].text dic['title'] = soup.select('title')[0].text def ReadFile(file): txtfile = open (file) for line in txtfile.readlines(): payload = { "video_id":"", "format":"mp3", "title":"", "start_time":"false", "end_time":"false", "thingy":"", "audio_quality":"128k", } video_id = line.split('/')[3] payload['video_id'] = video_id GetYoutubeName(payload) GetYoutThingy(payload) #print payload['thingy'] print "Ready to download :" + payload['title'] SaveToMp3(payload) time.sleep(1) if len(sys.argv)==2: ReadFile(sys.argv[1]) |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |