- 博客(4)
- 收藏
- 关注
原创 Python网易云音乐单曲爬取
Python网易云音乐单曲爬取 代码: import requests import os def develop(path,url): song_url = url song_id = song_url[32:] try: if not os.path.exists(path): os.makedirs(path) ...
2019-08-30 20:42:08 398
原创 python计时器
python计时器 1.使用time模块 程序启动开始计时,输入n结束 import time Start_time = 0 End_time = 0 def TimeLine(localStart_time,localEnd_time): return (localEnd_time.tm_sec - localStart_time.tm_sec + ((localEnd_...
2019-08-29 20:05:51 880
原创 python黑客工具制作教程
黑客工具: 可以查看目标ip的地址 可以查看目标url的子域名,备案,whois等等 import re from urllib.request import urlopen from bs4 import BeautifulSoup def search_ip(ip_address): #print(father_url + ip_address) url = f...
2019-08-29 20:02:23 1047
原创 Python藏头诗创作教程
1.首先我们要从网上用爬虫爬取古诗 这里我们用urllib库来进行爬虫,然后用re和beautifulsoup来进行解析 爬取的网站是https://so.gushiwen.org/mingju/ 然后将爬取的古诗保存在C:\编程\python\poem.txt中 import codecs from urllib.request import urlopen import re f...
2019-08-29 19:53:54 1807 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人