Skip to main content

Get information from various web resources

Project description

Web Recon

Source Code This package is designed to help users search the interwebz for pretty much anything (legal). You can use this package, which wraps other cloud packages and SDKs for ease of use and integration.

Goals of this project

  • Create a single source code repository that can handle searching
  • Allow other projects to use the search with minimal integration and code changes
    • Serverless frameworks like AWS Lambda, Google Cloud Functions, and Azure Automations. If the platform allows python with dependencies, webrecon should be able to run there.
  • Container clusters like ECS, EKS, Kubernetes in general, etc. All the Dockers, basically.

Use

Searching with Google CSE

To use Google Custom Search Engine you will want to use the gcse.search() function. You can include the library in your source code by importing webrecon.gcse. See the docstring for up to date notes on params etc. You can send in any of the parameters that the GCSE API from python offers up and a couple more too. The updated list of params from the Alphabet-Googlez folks can be found here and the current supported list of params for the search from webrecon.gsce.search()

  • q : This parameter is the actual search term. It can be helpful to use Google search operators.
  • filters <[String]>: Send a list of keys that might be found in the results from the search so that you can filter the results you deal with in your actual final result set.
  • key : The developer key for Google. You can find this in your GCSE console (manually log into the browser, amigoritos).
  • cx : The GCSE ID. Same story as the key parameter.
  • kwargs : You can pass any number of arguments in as key value pairs, at the end of your parameters list. These arguments will be dutifully passed along to the actual Google custom search method.

Example

from webrecon import gcse
...
res = gcse.search('intext:HUGO BOSS Genesis 2 Virgin Wool Dress Pants',
				  'title',
				  'link',
				  num=3,
				  exactTerm='Genesis 2')

print(res)
[
	{
		'title': 'Hugo Boss Pants',
		'link': 'https://www.macys.com/shop/b/hugo-boss-pants?id=78110'
	},
	{
		'title': 'HUGO BOSS 100% Wool Pants for Men for sale | eBay',
		'link': 'https://www.ebay.com/b/HUGO-BOSS-100-Wool-Pants-for-Men/57989/bn_4243898'
	},
	{
		'title': "HUGO BOSS | Trousers for Men | Elegant and Casual Men's Trousers",
		'link': 'https://www.hugoboss.com/us/men-pants/'
	}
]

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

webrecon-0.0.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

webrecon-0.0.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file webrecon-0.0.2.tar.gz.

File metadata

  • Download URL: webrecon-0.0.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for webrecon-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f183d35a8ee74d790a545d1ded8b33164acdeb90ad95d9221b2dca79c299ec2f
MD5 6f2abf0cec20120f389eb4a66f031fde
BLAKE2b-256 80846829d8626f0c924df88f20a9b32d6c6922f68ceec3ae8688c73a01b90e7f

See more details on using hashes here.

File details

Details for the file webrecon-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: webrecon-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for webrecon-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7d4d8baa17a7cbdbe9f7385695d199484499526fb672c1bc013910164d4ecc65
MD5 89047485364a0d2b49cb0d36c8a83fd4
BLAKE2b-256 186a0b1db5035fee5e33216b03258ccdd0eb0677b70f553ea6ea39b779ec77fb

See more details on using hashes here.

Supported by

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