Skip to main content

A package that list customize engine from google

Project description

googlesearch

可以轻松方便的获取google浏览器的搜索内容,也就是浏览器的item部分的信息

需要准本的信息如下

  • google自定义搜索引擎的api
  • 搜索引擎id

首先

我们可以初始化一个数据库,在终端输入

db-init

你可以得到一个名为googlesearch_result.db的sqlit数据库

然后

在googlesearch中的 ConstructingSearchContext 中填入

identify = {
    'api_key': 'AIzaSyAxty0nDfYWFIsmNVD2jIPMm5Y(example)',
    'cx': '06e7e5d88796(example)',
}

csc = ConstructingSearchContext(
    context='大赛 after:2025/1/1 -要素 -中国',
    num='10',
    start='1',
    identify=identify
)

最后

BatchSQLInsert 是一个可迭代对象,通过csc中的值,获取我们需要的list结构的信息

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

googlesearch_fastandcon-0.0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

googlesearch_fastandcon-0.0.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file googlesearch_fastandcon-0.0.1.tar.gz.

File metadata

  • Download URL: googlesearch_fastandcon-0.0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for googlesearch_fastandcon-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3bddaf72b137a1b08e3e0baffe2a002495517c2a909a508d3d96ad474902be1b
MD5 084308bf6a470045151d57fcf260f24e
BLAKE2b-256 717d37e08850800074d183e46cd6521ce1606609bf51292a22e081fa2858156c

See more details on using hashes here.

File details

Details for the file googlesearch_fastandcon-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for googlesearch_fastandcon-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 49cc5345c4260d0f2ca06e54267403db4fe8e25826d4f3f39d0129b0b62226da
MD5 17cf093fd171344993045b1810af1835
BLAKE2b-256 630ce17e3443332f0d50a3c69c54b217965ed4d2d94d4c7b1ef0e5224f2b96ad

See more details on using hashes here.

Supported by

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