Metadata-Version: 2.1
Name: pypublicwww
Version: 0.0.8
Summary: Python library and command-line utility for search in publicwww
Home-page: https://github.com/einar-lanfranco/publicwww
Author: Einar Lanfranco
Author-email: einar.lanfranco@gmail.com
License: UNKNOWN
Keywords: security,network
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: requests (>=2.2.1)
Requires-Dist: urllib3
Requires-Dist: xmltodict

PUBLICWWW Python Library
========================

This is a simple package to search https://publicwww.com, you need a valid key to search in publicwww

Installation
------------

```bash
pip3 install pypublicwww
```

Usage as command
================

```bash
publicwww [-h] [-apikey APIKEY] [-query QUERY] [-snippets] [-output [OUTPUT]] action
positional arguments:
action            Set action: init, info, search
```

SEARCH EXAMPLES
---------------

* Query for all Wordpress in domains .ar getting snippets

```bash
publicwww search -query 'site:ar "Wordpress"' -snippets
```

* Query for all Wordpress in domains .ar getting url

```bash
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

```python
import pypublicwww
api = PyPublicWWW(apikey)
print(api.info())
```

* Search for query and getting an export, you can add or not snippets

```python
import pypublicwww
publicwww. = PyPublicWWW(apikey)
publicwww._search_websites( 'site:ar "Wordpress"', csv=True, snippets=True)
```


