当前位置:网站首页>b站视频链接快速获取
b站视频链接快速获取
2022-07-06 12:56:00 【聆听我的召唤,菜鸟进化】
from lxml import etree
import time
import json
import requests
import csv
import random
import os
from fake_useragent import UserAgent
headers={
'User-Agent':UserAgent().random
}
for i in range(1,35):
url='https://api.bilibili.com/x/web-interface/search/type?__refresh__=true&_extra=&context=&page={}&page_size=42&from_source=&from_spmid=333.337&platform=pc&highlight=1&single_column=0&keyword=%E8%8E%8E%E5%A3%AB%E6%AF%94%E4%BA%9A%E6%88%8F%E5%89%A7%E8%A1%A8%E6%BC%94&category_id=&search_type=video&dynamic_offset=72&preload=true&com2co=true'.format(i)
response=requests.get(url=url,headers=headers)
data=response.json()
cards=data['data']['result']
print(i)
for card in cards:
li=[]
link=card["arcurl"]#评分
times=card["duration"]#影名
description=card["title"]#url
li.append(link)
li.append(times)
li.append(description)
print(li)
with open('biliok.csv', 'a', newline='', encoding='utf-8-sig') as fp:
writer = csv.writer(fp)
writer.writerow(li)
time.sleep(float(format(random.uniform(0,3), '.2f')))
边栏推荐
- 全网最全的知识库管理工具综合评测和推荐:FlowUs、Baklib、简道云、ONES Wiki 、PingCode、Seed、MeBox、亿方云、智米云、搜阅云、天翎
- Common English vocabulary that every programmer must master (recommended Collection)
- 请问sql group by 语句问题
- 1500萬員工輕松管理,雲原生數據庫GaussDB讓HR辦公更高效
- KDD 2022 | realize unified conversational recommendation through knowledge enhanced prompt learning
- @PathVariable
- @GetMapping、@PostMapping 和 @RequestMapping详细区别附实战代码(全)
- 每个程序员必须掌握的常用英语词汇(建议收藏)
- [asp.net core] set the format of Web API response data -- formatfilter feature
- Nodejs教程之让我们用 typescript 创建你的第一个 expressjs 应用程序
猜你喜欢

Aiko ai Frontier promotion (7.6)

嵌入式开发的7大原罪

967- letter combination of telephone number

HMS Core 机器学习服务打造同传翻译新“声”态,AI让国际交流更顺畅

3D人脸重建:从基础知识到识别/重建方法!

OneNote 深度评测:使用资源、插件、模版

【深度学习】PyTorch 1.12发布,正式支持苹果M1芯片GPU加速,修复众多Bug

【mysql】触发器

Opencv learning example code 3.2.3 image binarization

Performance test process and plan
随机推荐
Notes - detailed steps of training, testing and verification of yolo-v4-tiny source code
Web开发小妙招:巧用ThreadLocal规避层层传值
Is this the feeling of being spoiled by bytes?
Deployment of external server area and dual machine hot standby of firewall Foundation
爱可可AI前沿推介(7.6)
c#使用oracle存储过程获取结果集实例
15 millions d'employés sont faciles à gérer et la base de données native du cloud gaussdb rend le Bureau des RH plus efficace
js之遍历数组、字符串
The biggest pain point of traffic management - the resource utilization rate cannot go up
Yyds dry inventory run kubeedge official example_ Counter demo counter
R language visualizes the relationship between more than two classification (category) variables, uses mosaic function in VCD package to create mosaic plots, and visualizes the relationship between tw
KDD 2022 | realize unified conversational recommendation through knowledge enhanced prompt learning
PHP saves session data to MySQL database
Regular expression collection
None of the strongest kings in the monitoring industry!
Statistical inference: maximum likelihood estimation, Bayesian estimation and variance deviation decomposition
OneNote in-depth evaluation: using resources, plug-ins, templates
基于深度学习的参考帧生成
What are RDB and AOF
3D face reconstruction: from basic knowledge to recognition / reconstruction methods!