A Library to Convert Curl to Python Requests File
Project description
KKBA
Intruoduction
A low-code tool that generates python crawler code based on curl or url
Requirement
Python >= 3.6
Install
pip install kkba
Usage
Copy the curl command or url from the browser, without pasting, execute the command directly: kkba [options]
kkba [options]
# After the command execution, the crawler directory will be generated in the current directory (including the crawler articles and readme files).
Example
# 1. Copy curl or url
# 2. excute commands
kkba -F
Help Document
kkba -h
Genrates feapder spider code
# install fepader
pip install feapder
# generates feapder spiders code
kkba -F
Generates scrapy single file code
# install scrapy
pip install scrapy
# generates scrapy single spiders code
kkba -F
Thanks
curl2pyreqs 令狐 向娜
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kkba-0.8.15.tar.gz
(15.0 kB
view details)
Built Distribution
kkba-0.8.15-py3-none-any.whl
(16.9 kB
view details)
File details
Details for the file kkba-0.8.15.tar.gz
.
File metadata
- Download URL: kkba-0.8.15.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef01eac295e1a242a3d88be5c26987d3468f81920487ce49f5e2d41b82e639bd |
|
MD5 | 69bb8cdb95b30d3a03e7efb81a67e409 |
|
BLAKE2b-256 | 8556c823da60fd4c5260bc6f9a037eb188ac973b675a4fd0407f251e710e803d |
File details
Details for the file kkba-0.8.15-py3-none-any.whl
.
File metadata
- Download URL: kkba-0.8.15-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ec4452905527cb798e040284c72cd2a36d857674d5da58ed912bf2892a0daec |
|
MD5 | af2a7ea6e3dae3b283649f6d886e904b |
|
BLAKE2b-256 | b26270248a2ccebe90450ddd9225a38184ee90fc4d6284f8d6c5bc79fb65e071 |