web-grep written in Python3
Project description
web-grepy: CommandLine web-grep.py
Re-implementation web-grep with Python3,
Scraping HTML or XML with simple Pattern Matching like grep -o
.
# Requires Python3
$ pip install web-grepy
$ which web-grepy
$ curl -sL https://example.com/xxx | web-grepy '<a href={}></a>'
$ curl -sL https://example.com/xxx | web-grepy '<a href={link}>{text}</a>' # ltsv by default
$ curl -sL https://example.com/xxx | web-grepy '<a href={link}>{text}</a>' -f json
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
web-grepy-1.1.0.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file web-grepy-1.1.0.tar.gz
.
File metadata
- Download URL: web-grepy-1.1.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Linux/4.19.104-microsoft-standard
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43be29a5545c0b3c05cb6d2064aeea35b7b8731751ae05ca14439a9c5ef4a2a3 |
|
MD5 | 78cf57d5b98da52fe5a5d1a604443fc4 |
|
BLAKE2b-256 | 20c27e924ccee0693fa30a813d19ab5c1483e3a785e1f2a1e3db0f702a4bad8d |
File details
Details for the file web_grepy-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: web_grepy-1.1.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Linux/4.19.104-microsoft-standard
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3b1a331241d16e60c8b334d94ada728e929377a55cacfb64e9a710655c55bcc |
|
MD5 | c63f0a54ff4eecb8847ac967f304a76a |
|
BLAKE2b-256 | 4d83b33775a442d24c55f4f14486ebc04829447e1b2dcef47aa1785bc98bec64 |