Skip to main content

Fetches a list of URLs and silly walks through each site to gather information.

Project description

foot

Web Crawling Project

Foot is a library that fetches a list of URLs and silly walks through each site to gather information.

Usage

Install

pip install foot

foot (cli)

  • -u URL(s) (encapsulated in quotes, separated by commas)
  • -f filename (list of urls on new lines)
Options (not required)
  • -c : Specify chunk size (default=10)
  • --recursive : Enable one level of recursion
Examples:

Array of URLS:
foot -u 'http://example.com, http://example1.com'

Array of URLS with Options:
foot 'http://example.com, http://example1.com' -c 5 --recursive

File:
foot -f 'example.txt

File with Options:
foot -f 'example.txt' -c 5 --recursive

Module

Import:
import foot

Functions

The get function takes an array of URLS and options.

foot.get(["http://www.example`.com", "http://www.example2.com"], options);
    => Data output in ./foot/url.json and foot-date.txt

The file function takes a filename and options.

foot.file("./test.txt", recursive=True)
    => Data output in ./foot/url.json and foot-date.txt

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

foot-0.1.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

foot-0.1.0-py2.py3-none-any.whl (4.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file foot-0.1.0.tar.gz.

File metadata

  • Download URL: foot-0.1.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for foot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 14a854c995c4895545940646d23e8320824fff0a60f54cd9b48e17b353f5ef20
MD5 3c4601701578f33f3a4f8ea63a9bcfe8
BLAKE2b-256 bbd880a24bc1542f308d77e448578b38954d11e03ec3af8f994fbc924b28503f

See more details on using hashes here.

File details

Details for the file foot-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: foot-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for foot-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 36fc882089f97aab770d87472ae6814ffb30b3092625db20f595fb94db6ad1bf
MD5 1d154e5b3b695145304a37fb1a2c69c4
BLAKE2b-256 debcf7b849b6113f4fd2b8847c377bd1d6db494be33d61317205f8e7732a39b3

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