新四季網

github 直播開源項目(集成淘寶京東B站)

2023-09-24 05:39:52

20多個爬蟲實戰案例

在開始之前,我建議你先安裝一下DecryptLoginExamples這個包,以方便測試下文中會逐一介紹到的各個爬蟲項目的調用代碼。具體而言,只需要執行如下命令即可:

pip install DecryptLoginExamples

1. 微博監控

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用戶名, 'password': 密碼, 'time_interval': 查詢微博動態的間隔時間,}crawler_executor = client.Clientcrawler_executor.executor('weibomonitor', config=config)

2. 生成QQ個人專屬報告

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用於存儲歷史cookies的唯一標識ID, 'savedir': 生成的報告保存的文件夾,}crawler_executor = client.Clientcrawler_executor.executor('qqreports', config=config)

3. 下載B站指定UP主的所有視頻

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用於存儲歷史cookies的唯一標識ID, }crawler_executor = client.Clientcrawler_executor.executor('bilibiliuservideos', config=config)

4. 網易雲個人歌單下載器

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用於存儲歷史cookies的唯一標識ID, }crawler_executor = client.Clientcrawler_executor.executor('neteasesonglistdownloader', config=config)

5. 網易雲個人聽歌排行榜

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用於存儲歷史cookies的唯一標識ID, }crawler_executor = client.Clientcrawler_executor.executor('neteaselistenleaderboard', config=config)

6. 下載指定微博用戶的所有微博數據

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用戶名, 'password': 密碼,}crawler_executor = client.Clientcrawler_executor.executor('userweibospider', config=config)

7. 網易雲音樂自動籤到

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用於存儲歷史cookies的唯一標識ID, }crawler_executor = client.Clientcrawler_executor.executor('neteasesignin', config=config)

8. 微博表情包爬取

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用戶名, 'password': 密碼,}crawler_executor = client.Clientcrawler_executor.executor('weiboemoji', config=config)

9. 大吼一聲發微博

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用戶名, 'password': 密碼,}crawler_executor = client.Clientcrawler_executor.executor('weibosender', config=config)

10. 淘寶商品數據小爬蟲

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用於存儲歷史cookies的唯一標識ID, }crawler_executor = client.Clientcrawler_executor.executor('tbgoods', config=config)

11. 京東商品數據小爬蟲

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用於存儲歷史cookies的唯一標識ID, }crawler_executor = client.Clientcrawler_executor.executor('jdgoods', config=config)

12. 批量刪除微博

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用戶名, 'password': 密碼,}crawler_executor = client.Clientcrawler_executor.executor('delallweibos', config=config)

13. 批量刪除QQ空間說說

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用於存儲歷史cookies的唯一標識ID, }crawler_executor = client.Clientcrawler_executor.executor('clearqzone', config=config)

14. 在終端看網易雲每日歌曲推薦

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用於存儲歷史cookies的唯一標識ID, }crawler_executor = client.Clientcrawler_executor.executor('neteaseeveryday', config=config)

15. 網易雲音樂刷歌曲播放量

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用於存儲歷史cookies的唯一標識ID, }crawler_executor = client.Clientcrawler_executor.executor('neteaseclickplaylist', config=config)

16. 天翼雲盤自動籤到 抽獎

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用戶名, 'password': 密碼,}crawler_executor = client.Clientcrawler_executor.executor('cloud189signin', config=config)

17. 中國大學MOOC下載器

調用方式:

from DecryptLoginExamples import clientconfig = { 'url': 課程連結, 例如: https://www.icourse163.org/course/SJTU-1003381021, }crawler_executor = client.Clientcrawler_executor.executor('moocdl', config=config)

18. 修改小米運動中的步數

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用戶名, 'password': 密碼, 'steps': 想要刷到的目標步數,}crawler_executor = client.Clientcrawler_executor.executor('modifymihealthsteps', config=config)

19. 淘寶搶購腳本

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用於存儲歷史cookies的唯一標識ID, 'trybuy_interval': 搶購商品時查詢商品是否可以購買的時間間隔(單位秒), 'server_key': Server醬的Key,}crawler_executor = client.Clientcrawler_executor.executor('taobaosnap', config=config)

20. 京東搶購腳本

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用於存儲歷史cookies的唯一標識ID, 'trybuy_interval': 搶購商品時查詢商品是否可以購買的時間間隔(單位秒), 'server_key': Server醬的Key, 'paywd': 支付密碼, 部分商品需要支付密碼才能提交訂單, 輸入密碼不會導致你直接購買商品, 請放心使用,}crawler_executor = client.Clientcrawler_executor.executor('jingdongsnap', config=config)

21. B站UP主監控

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用於存儲歷史cookies的唯一標識ID, 'up_ids': 監控的UP主ID, 例如: ['406756145'], 'time_interval': 查詢UP主的動態的間隔時間, 'server_key': Server醬的Key,}crawler_executor = client.Clientcrawler_executor.executor('bilibiliupmonitor', config=config)

22. B站監控關注的UP主並自動轉發抽獎

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用於存儲歷史cookies的唯一標識ID, 'time_interval': 查詢UP主的動態的間隔時間,}crawler_executor = client.Clientcrawler_executor.executor('bilibililottery', config=config)

23. 微博水軍

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用戶名, 'password': 密碼, 'targetid': 想要流量造假服務的明星微博ID, 例如: '1776448504',}crawler_executor = client.Clientcrawler_executor.executor('weibowater', config=config)

24. 微博批量拉黑腳本

調用方式:

from DecryptLoginExamples import clientconfig = { 'username': 用戶名, 'password': 密碼, 'blacklist_ids': 想要批量拉黑的用戶列表, 例如: ['1776448504', '1792951112', '2656274875'],}crawler_executor = client.Clientcrawler_executor.executor('weiboblacklist', config=config)

,
同类文章
葬禮的夢想

葬禮的夢想

夢見葬禮,我得到了這個夢想,五個要素的五個要素,水火只好,主要名字在外面,職業生涯良好,一切都應該對待他人治療誠意,由於小,吉利的冬天夢想,秋天的夢是不吉利的
找到手機是什麼意思?

找到手機是什麼意思?

找到手機是什麼意思?五次選舉的五個要素是兩名士兵的跡象。與他溝通很好。這是非常財富,它擅長運作,職業是仙人的標誌。單身男人有這個夢想,主要生活可以有人幫忙
我不怎麼想?

我不怎麼想?

我做了什麼意味著看到米飯烹飪?我得到了這個夢想,五線的主要土壤,但是Tu Ke水是錢的跡象,職業生涯更加真誠。他真誠地誠實。這是豐富的,這是夏瑞的巨星
夢想你的意思是什麼?

夢想你的意思是什麼?

你是什​​麼意思夢想的夢想?夢想,主要木材的五個要素,水的跡象,主營業務,主營業務,案子應該抓住魅力,不能疏忽,春天夢想的吉利夢想夏天的夢想不幸。詢問學者夢想
拯救夢想

拯救夢想

拯救夢想什麼意思?你夢想著拯救人嗎?拯救人們的夢想有一個現實,也有夢想的主觀想像力,請參閱週宮官方網站拯救人民夢想的詳細解釋。夢想著敵人被拯救出來
2022愛方向和生日是在[質量個性]中

2022愛方向和生日是在[質量個性]中

[救生員]有人說,在出生88天之前,胎兒已經知道哪天的出生,如何有優質的個性,將走在什麼樣的愛情之旅,將與生活生活有什么生活。今天
夢想切割剪裁

夢想切割剪裁

夢想切割剪裁什麼意思?你夢想切你的手是好的嗎?夢想切割手工切割手有一個真正的影響和反應,也有夢想的主觀想像力。請參閱官方網站夢想的細節,以削減手
夢想著親人死了

夢想著親人死了

夢想著親人死了什麼意思?你夢想夢想你的親人死嗎?夢想有一個現實的影響和反應,還有夢想的主觀想像力,請參閱夢想世界夢想死亡的親屬的詳細解釋
夢想搶劫

夢想搶劫

夢想搶劫什麼意思?你夢想搶劫嗎?夢想著搶劫有一個現實的影響和反應,也有夢想的主觀想像力,請參閱週恭吉夢官方網站的詳細解釋。夢想搶劫
夢想缺乏缺乏紊亂

夢想缺乏缺乏紊亂

夢想缺乏缺乏紊亂什麼意思?你夢想缺乏異常藥物嗎?夢想缺乏現實世界的影響和現實,還有夢想的主觀想像,請看官方網站的夢想組織缺乏異常藥物。我覺得有些東西缺失了