Python library and command-line utility for search in publicwww
Project description
PUBLICWWW Python Library
This is a simple package to search https://publicwww.com, you need a valid key to search in publicwww
Usage as command
usage: publicwww [-h] [-apikey APIKEY] [-query QUERY] [-snippets] [-output [OUTPUT]] action
- positional arguments:
action Set action: init, info, search
- optional arguments:
- -h, --help
show this help message and exit
- init arguments:
-apikey APIKEY Set API KEY for init
- search arguments:
-query QUERY Enter query to be issue in publicwww -snippets Add snippet to results -output [OUTPUT] Output File
EXAMPLES:
publicwww init -apikey 0123456789abcdef publicwww info publicwww search -query query For include snippets: publicwww search -query query -snippets For define filename to output, without -output it prints on terminal: publicwww search -query query -snippets -output (default results.csv) publicwww search -query query -snippets -output file_results.csv
SEARCH EXAMPLES
Query for all Wordpress in domains .ar getting snippets
` publicwww search -query 'site:ar "Wordpress"' -snippets `
Query for all Wordpress in domains .ar getting url
` publicwww search -query 'site:ar "Wordpress"' ` If you add -ouput you will get the results in result.csv or -output /tmp/whatever.csv to get the result in /tmp/whatever.csv
Usage as library
Print account information
` import pypublicwww api = PyPublicWWW(apikey) print(api.info()) ` * Search for query and getting an export, you can add or not snippets
` import pypublicwww publicwww. = PyPublicWWW(apikey) publicwww._search_websites( 'site:ar "Wordpress"', csv=True, snippets=True) `
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
File details
Details for the file pypublicwww-0.0.2.tar.gz
.
File metadata
- Download URL: pypublicwww-0.0.2.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87a5e96b7980c18d83b9fc54c630645d7b52c0412207a3b6f2e06d9b97020bea |
|
MD5 | 50acb861b670ad502f3053f580d07e80 |
|
BLAKE2b-256 | 2bb899f7ccc34c25ffd16f7118a9f14cfdde527f28a707d8ab99eba4d0720c4b |