当前位置:网站首页>A gadget can write crawlers faster
A gadget can write crawlers faster
2022-06-28 07:09:00 【somenzz】
Hello , I am a somenzz, I think you wrote about reptiles , That's it. requests library , It works so well , There should be no one who doesn't know requests.
Usually we use Google Chrome developer tools (F12) Find network requests , Then send the network request to url、headers、cookie、user-agent、 Requested parameters, etc , recorded , then , use requests Simulate a request from a browser .
These simple mindless copying operations , It makes me feel really tired to write about reptiles , Is there a tool , You can convert this request directly into Python Code ?
There are !
That's it curlconverter[1]

It's easy to use :

Take Google browser for example :
1、 stay 「 Developer tools 」 Open in 「Network」 tab
2、 Right click ( Or press and hold Ctrl Key click ) request
3、 Click on "Copy" → "Copy as cURL"
4、 Paste it onto the above curl The command box
Select the language you want to convert ( The default is Python), You can copy the code , Very convenient :

Last words
I hate to meet you so late , It can save you a lot of time writing crawlers , Please remember that the URL is :https://curlconverter.com/, If it helps , Please click to see the diffusion , If there are good tools , You can also leave a message to share .

[1]
curlconverter: https://curlconverter.com/
边栏推荐
- ice - 资源
- The practice of event driven architecture in vivo content platform
- MMR重排(相似度通过编辑距离和重复度计算)
- 【星海出品】 运维巡检合集
- 小小一款代码编辑器竟然也可以有程序运行之功能——Sublime Text3运行各种语言程序的总结
- R 语言绘制 动画气泡图
- BACnet/IP网关如何采集楼宇集中控制系统数据
- Wechat applet paging function, pull-down refresh function, direct dry goods
- 编译配置in文件
- Is it safe to open a stock trading account on your mobile phone?
猜你喜欢

The code is correct, and the rendering page does not display the reason

JS regular expression system explanation (comprehensive summary)

Techo Day 腾讯技术开放日,6月28日线上等你!

Comprehensive analysis of real enterprise software testing process

推荐几款0代码、免费、现学现用的可视化工具

Top 25 most popular articles on vivo Internet technology in 2021

Comment la passerelle BACnet / IP recueille - t - elle les données du système central de contrôle des bâtiments?

Yesterday, I went to a large factory for an interview and asked me to do four arithmetic operations. Fortunately, I am smart enough

LeetCode+ 51 - 55 回溯、动态规划专题

Freeswitch uses Mod_ Shot module plays mp3
随机推荐
编译配置in文件
Singleton singleton mode
Eyebeam advanced settings
7-2 芬兰木棋 结构体排序
LeetCode+ 51 - 55 回溯、动态规划专题
Sword finger offer II 091 Paint the house
最后的二十九天
Pfizer's new Guankou medicine has entered the Chinese market, and the listing of relevant products of domestic pharmaceutical enterprises is just around the corner
[interval DP] stone consolidation
ice - 资源
MySQL master-slave replication, detailed configuration, create unable to connect processing prompt
Server body 18: understanding and thinking of UDP reliable transmission (feeling from reading Yunfeng blog)
BACnet/IP网关如何采集楼宇集中控制系统数据
Will Internet talents be scarce in the future? Which technology directions are popular?
[c #] [reprint]furion frame address and tutorial address
Trie string statistics
小程序页面设置100%高度还是留白怎么办?
Freeswitch uses origin to dialplan
ice, protobuf ,thrift -- 笔记
@RequestParam