Skip to main content

No project description provided

Project description

PyCrawl

Script for crawling in Python.

Description

This project enables site crawling and data extraction with xpath and css selectors. You can also send forms such as text data, files, and checkboxes.

Requirement

  • Python3
  • mechanize
  • lxml

Usage

Simple Example

import pycrawl

url = 'http://www.example.com/'
doc = pycrawl.PyCrawl(url)

# Search for nodes by css
doc.css('div')
doc.css('.main-text')
doc.css('#tadjs')

# Search for nodes by xpath
doc.xpath('//*[@id="top"]/div[1]')

# Others
doc.css('div').css('a')[2].attr('href')
doc.css('p').innerText()
doc.tables  # -> Table Tag to Dict

# You do not need to specify "[]" to access the first index

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycrawl-1.0.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pycrawl-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pycrawl-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for pycrawl-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e6e4bcaf75ab3b405e1eed358dc5d951f080bfa79d72b63efcdc18c3065c6d04
MD5 5d11f144be0d6a020add6de53b124ca2
BLAKE2b-256 bbf0824d0cf6d59576d4692fd153bd0804bcb96d858c65fbe61e1006434db377

See more details on using hashes here.

Supported by

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