当前位置:网站首页>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')))
边栏推荐
- 【论文解读】用于白内障分级/分类的机器学习技术
- 拼多多败诉,砍价始终差0.9%一案宣判;微信内测同一手机号可注册两个账号功能;2022年度菲尔兹奖公布|极客头条
- Word bag model and TF-IDF
- Statistical inference: maximum likelihood estimation, Bayesian estimation and variance deviation decomposition
- How to implement common frameworks
- [redis design and implementation] part I: summary of redis data structure and objects
- 正则表达式收集
- 过程化sql在定义变量上与c语言中的变量定义有什么区别
- 防火墙基础之外网服务器区部署和双机热备
- SAP Fiori应用索引大全工具和 SAP Fiori Tools 的使用介绍
猜你喜欢

爱可可AI前沿推介(7.6)

审稿人dis整个研究方向已经不仅仅是在审我的稿子了怎么办?

968 edit distance

The difference between break and continue in the for loop -- break completely end the loop & continue terminate this loop
![[sliding window] group B of the 9th Landbridge cup provincial tournament: log statistics](/img/2d/9a7e88fb774984d061538e3ad4a96b.png)
[sliding window] group B of the 9th Landbridge cup provincial tournament: log statistics

Seven original sins of embedded development

Laravel notes - add the function of locking accounts after 5 login failures in user-defined login (improve system security)

Swagger UI tutorial API document artifact

New database, multidimensional table platform inventory note, flowus, airtable, seatable, Vig table Vika, Feishu multidimensional table, heipayun, Zhixin information, YuQue

15million employees are easy to manage, and the cloud native database gaussdb makes HR office more efficient
随机推荐
Manifest of SAP ui5 framework json
None of the strongest kings in the monitoring industry!
What are RDB and AOF
PHP saves session data to MySQL database
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
Nodejs tutorial expressjs article quick start
Simple continuous viewing PTA
Le langage r visualise les relations entre plus de deux variables de classification (catégories), crée des plots Mosaiques en utilisant la fonction Mosaic dans le paquet VCD, et visualise les relation
LLVM之父Chris Lattner:为什么我们要重建AI基础设施软件
[redis design and implementation] part I: summary of redis data structure and objects
JS according to the Chinese Alphabet (province) or according to the English alphabet - Za sort &az sort
Infrared thermometer based on STM32 single chip microcomputer (with face detection)
Study notes of grain Mall - phase I: Project Introduction
Forward maximum matching method
PG basics -- Logical Structure Management (transaction)
R語言可視化兩個以上的分類(類別)變量之間的關系、使用vcd包中的Mosaic函數創建馬賽克圖( Mosaic plots)、分別可視化兩個、三個、四個分類變量的關系的馬賽克圖
R语言可视化两个以上的分类(类别)变量之间的关系、使用vcd包中的Mosaic函数创建马赛克图( Mosaic plots)、分别可视化两个、三个、四个分类变量的关系的马赛克图
OneNote in-depth evaluation: using resources, plug-ins, templates
OneNote 深度评测:使用资源、插件、模版
3D face reconstruction: from basic knowledge to recognition / reconstruction methods!