Skip to main content

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

sample graph

Help Document

kkba -h

enter description here

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


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)

Uploaded Source

Built Distribution

kkba-0.8.15-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

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

Hashes for kkba-0.8.15.tar.gz
Algorithm Hash digest
SHA256 ef01eac295e1a242a3d88be5c26987d3468f81920487ce49f5e2d41b82e639bd
MD5 69bb8cdb95b30d3a03e7efb81a67e409
BLAKE2b-256 8556c823da60fd4c5260bc6f9a037eb188ac973b675a4fd0407f251e710e803d

See more details on using hashes here.

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

Hashes for kkba-0.8.15-py3-none-any.whl
Algorithm Hash digest
SHA256 4ec4452905527cb798e040284c72cd2a36d857674d5da58ed912bf2892a0daec
MD5 af2a7ea6e3dae3b283649f6d886e904b
BLAKE2b-256 b26270248a2ccebe90450ddd9225a38184ee90fc4d6284f8d6c5bc79fb65e071

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page