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.14.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file kkba-0.8.14.tar.gz.

File metadata

  • Download URL: kkba-0.8.14.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.14.tar.gz
Algorithm Hash digest
SHA256 110f85eee527e7912be7576d9966f692347add31de19498c209027e6cc193082
MD5 8ca8a5d1d124003ac012d3e33d587006
BLAKE2b-256 503f844fccb8485ccebe9c16f13aba8fde5dbcdc2cc253ea6901adc2946f934b

See more details on using hashes here.

File details

Details for the file kkba-0.8.14-py3-none-any.whl.

File metadata

  • Download URL: kkba-0.8.14-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.14-py3-none-any.whl
Algorithm Hash digest
SHA256 e6fc978fdb77b81ff3339e1c0b9728942afb95dd7a2ca416d9638ea727dfc32a
MD5 43224a7b3f70cf21deca3647d5b53081
BLAKE2b-256 81d565fa2998c4c38e946ccd288a2ab15bc250ae82ea68bf057dbf576f4b7fef

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