google-browser-scraper 0.1.2__tar.gz → 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- google_browser_scraper-0.2.0/PKG-INFO +38 -0
- google_browser_scraper-0.2.0/README.md +14 -0
- google_browser_scraper-0.2.0/pyproject.toml +38 -0
- google_browser_scraper-0.2.0/src/google_browser_scraper/__init__.py +45 -0
- {google_browser_scraper-0.1.2 → google_browser_scraper-0.2.0}/src/google_browser_scraper/__main__.py +1 -1
- google_browser_scraper-0.2.0/src/google_browser_scraper.egg-info/PKG-INFO +38 -0
- google_browser_scraper-0.2.0/src/google_browser_scraper.egg-info/SOURCES.txt +11 -0
- google_browser_scraper-0.2.0/src/google_browser_scraper.egg-info/entry_points.txt +2 -0
- google_browser_scraper-0.2.0/src/google_browser_scraper.egg-info/requires.txt +13 -0
- google_browser_scraper-0.1.2/MANIFEST.in +0 -1
- google_browser_scraper-0.1.2/PKG-INFO +0 -468
- google_browser_scraper-0.1.2/README.md +0 -436
- google_browser_scraper-0.1.2/pyproject.toml +0 -61
- google_browser_scraper-0.1.2/src/google_browser_scraper/__init__.py +0 -27
- google_browser_scraper-0.1.2/src/google_browser_scraper/browser.py +0 -398
- google_browser_scraper-0.1.2/src/google_browser_scraper/classify.py +0 -105
- google_browser_scraper-0.1.2/src/google_browser_scraper/cli.py +0 -464
- google_browser_scraper-0.1.2/src/google_browser_scraper/doctor.py +0 -155
- google_browser_scraper-0.1.2/src/google_browser_scraper/engines.py +0 -55
- google_browser_scraper-0.1.2/src/google_browser_scraper/hybrid.py +0 -554
- google_browser_scraper-0.1.2/src/google_browser_scraper/links.py +0 -232
- google_browser_scraper-0.1.2/src/google_browser_scraper/mcp.py +0 -195
- google_browser_scraper-0.1.2/src/google_browser_scraper/output.py +0 -151
- google_browser_scraper-0.1.2/src/google_browser_scraper/parse.py +0 -538
- google_browser_scraper-0.1.2/src/google_browser_scraper/pool.py +0 -194
- google_browser_scraper-0.1.2/src/google_browser_scraper/proxy.py +0 -196
- google_browser_scraper-0.1.2/src/google_browser_scraper/quality.py +0 -63
- google_browser_scraper-0.1.2/src/google_browser_scraper/relay.py +0 -306
- google_browser_scraper-0.1.2/src/google_browser_scraper/scraper.py +0 -1468
- google_browser_scraper-0.1.2/src/google_browser_scraper/server.py +0 -311
- google_browser_scraper-0.1.2/src/google_browser_scraper/warmup.py +0 -44
- google_browser_scraper-0.1.2/src/google_browser_scraper.egg-info/PKG-INFO +0 -468
- google_browser_scraper-0.1.2/src/google_browser_scraper.egg-info/SOURCES.txt +0 -45
- google_browser_scraper-0.1.2/src/google_browser_scraper.egg-info/entry_points.txt +0 -2
- google_browser_scraper-0.1.2/src/google_browser_scraper.egg-info/requires.txt +0 -17
- google_browser_scraper-0.1.2/tests/fakegoogle.py +0 -91
- google_browser_scraper-0.1.2/tests/pages.py +0 -149
- google_browser_scraper-0.1.2/tests/stdio_mcp_child.py +0 -39
- google_browser_scraper-0.1.2/tests/test_browser_local.py +0 -149
- google_browser_scraper-0.1.2/tests/test_classify.py +0 -58
- google_browser_scraper-0.1.2/tests/test_cli_and_output.py +0 -197
- google_browser_scraper-0.1.2/tests/test_engines_local.py +0 -161
- google_browser_scraper-0.1.2/tests/test_hybrid.py +0 -467
- google_browser_scraper-0.1.2/tests/test_links.py +0 -273
- google_browser_scraper-0.1.2/tests/test_parse.py +0 -235
- google_browser_scraper-0.1.2/tests/test_pool.py +0 -255
- google_browser_scraper-0.1.2/tests/test_proxy.py +0 -178
- google_browser_scraper-0.1.2/tests/test_relay.py +0 -247
- google_browser_scraper-0.1.2/tests/test_scraper.py +0 -1265
- google_browser_scraper-0.1.2/tests/test_serve_and_mcp.py +0 -498
- google_browser_scraper-0.1.2/tests/test_warmup.py +0 -15
- {google_browser_scraper-0.1.2 → google_browser_scraper-0.2.0}/LICENSE +0 -0
- {google_browser_scraper-0.1.2 → google_browser_scraper-0.2.0}/setup.cfg +0 -0
- {google_browser_scraper-0.1.2 → google_browser_scraper-0.2.0}/src/google_browser_scraper.egg-info/dependency_links.txt +0 -0
- {google_browser_scraper-0.1.2 → google_browser_scraper-0.2.0}/src/google_browser_scraper.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: google-browser-scraper
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Renamed to gserp. Installing this installs gserp and keeps the old command and import working.
|
|
5
|
+
Author: NodeMaven
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Source, https://github.com/nodemaven/gserp
|
|
8
|
+
Project-URL: New package, https://pypi.org/project/gserp/
|
|
9
|
+
Classifier: Development Status :: 7 - Inactive
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Requires-Python: >=3.10
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: gserp>=0.2.0
|
|
15
|
+
Provides-Extra: nodemaven
|
|
16
|
+
Requires-Dist: gserp[nodemaven]>=0.2.0; extra == "nodemaven"
|
|
17
|
+
Provides-Extra: cloak
|
|
18
|
+
Requires-Dist: gserp[cloak]>=0.2.0; extra == "cloak"
|
|
19
|
+
Provides-Extra: all
|
|
20
|
+
Requires-Dist: gserp[all]>=0.2.0; extra == "all"
|
|
21
|
+
Provides-Extra: dev
|
|
22
|
+
Requires-Dist: gserp[dev]>=0.2.0; extra == "dev"
|
|
23
|
+
Dynamic: license-file
|
|
24
|
+
|
|
25
|
+
# google-browser-scraper is now gserp
|
|
26
|
+
|
|
27
|
+
This project was renamed to [gserp](https://pypi.org/project/gserp/).
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
pip install gserp
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Installing `google-browser-scraper` installs `gserp` and keeps the old names working: the `google-browser-scraper` command,
|
|
34
|
+
`import google_browser_scraper` (with a deprecation warning) and the `GBS_*`
|
|
35
|
+
environment variables. New code should use `gserp`, `import gserp` and
|
|
36
|
+
`GSERP_*`.
|
|
37
|
+
|
|
38
|
+
Source and documentation: https://github.com/nodemaven/gserp
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# google-browser-scraper is now gserp
|
|
2
|
+
|
|
3
|
+
This project was renamed to [gserp](https://pypi.org/project/gserp/).
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
pip install gserp
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Installing `google-browser-scraper` installs `gserp` and keeps the old names working: the `google-browser-scraper` command,
|
|
10
|
+
`import google_browser_scraper` (with a deprecation warning) and the `GBS_*`
|
|
11
|
+
environment variables. New code should use `gserp`, `import gserp` and
|
|
12
|
+
`GSERP_*`.
|
|
13
|
+
|
|
14
|
+
Source and documentation: https://github.com/nodemaven/gserp
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# The old distribution name, kept so that `pip install google-browser-scraper`,
|
|
2
|
+
# the `google-browser-scraper` command and `import google_browser_scraper` go on
|
|
3
|
+
# working. It holds no code of its own: it installs `gserp`, this version or newer.
|
|
4
|
+
[build-system]
|
|
5
|
+
# 77 for `license-files` in [project].
|
|
6
|
+
requires = ["setuptools>=77"]
|
|
7
|
+
build-backend = "setuptools.build_meta"
|
|
8
|
+
|
|
9
|
+
[project]
|
|
10
|
+
name = "google-browser-scraper"
|
|
11
|
+
version = "0.2.0"
|
|
12
|
+
description = "Renamed to gserp. Installing this installs gserp and keeps the old command and import working."
|
|
13
|
+
readme = "README.md"
|
|
14
|
+
license = "MIT"
|
|
15
|
+
license-files = ["LICENSE"]
|
|
16
|
+
requires-python = ">=3.10"
|
|
17
|
+
authors = [{ name = "NodeMaven" }]
|
|
18
|
+
classifiers = [
|
|
19
|
+
"Development Status :: 7 - Inactive",
|
|
20
|
+
"Programming Language :: Python :: 3",
|
|
21
|
+
]
|
|
22
|
+
dependencies = ["gserp>=0.2.0"]
|
|
23
|
+
|
|
24
|
+
[project.optional-dependencies]
|
|
25
|
+
nodemaven = ["gserp[nodemaven]>=0.2.0"]
|
|
26
|
+
cloak = ["gserp[cloak]>=0.2.0"]
|
|
27
|
+
all = ["gserp[all]>=0.2.0"]
|
|
28
|
+
dev = ["gserp[dev]>=0.2.0"]
|
|
29
|
+
|
|
30
|
+
[project.scripts]
|
|
31
|
+
google-browser-scraper = "google_browser_scraper:main"
|
|
32
|
+
|
|
33
|
+
[project.urls]
|
|
34
|
+
Source = "https://github.com/nodemaven/gserp"
|
|
35
|
+
"New package" = "https://pypi.org/project/gserp/"
|
|
36
|
+
|
|
37
|
+
[tool.setuptools.packages.find]
|
|
38
|
+
where = ["src"]
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"""The old name of `gserp`.
|
|
2
|
+
|
|
3
|
+
`google-browser-scraper` was renamed to `gserp`. This package installs `gserp`
|
|
4
|
+
and keeps the old import, command and `python -m` working: every
|
|
5
|
+
`google_browser_scraper.<module>` is the same module object as `gserp.<module>`.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
import importlib
|
|
9
|
+
import pkgutil
|
|
10
|
+
import sys
|
|
11
|
+
import warnings
|
|
12
|
+
|
|
13
|
+
import gserp
|
|
14
|
+
from gserp import * # noqa: F403
|
|
15
|
+
from gserp import __all__, __version__ # noqa: F401
|
|
16
|
+
|
|
17
|
+
# FutureWarning, not DeprecationWarning: Python shows it by default wherever the
|
|
18
|
+
# import happens, and this one is meant for the people running the code.
|
|
19
|
+
warnings.warn(
|
|
20
|
+
"google_browser_scraper is now gserp: pip install gserp and import gserp",
|
|
21
|
+
FutureWarning,
|
|
22
|
+
stacklevel=2,
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
# Every public gserp module, read from the installed package so a module added
|
|
26
|
+
# later is aliased too. `__main__` and private modules are left out: importing
|
|
27
|
+
# `gserp.__main__` would run the CLI.
|
|
28
|
+
MODULES = tuple(
|
|
29
|
+
info.name for info in pkgutil.iter_modules(gserp.__path__) if not info.name.startswith("_")
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
for _name in MODULES:
|
|
33
|
+
_module = importlib.import_module(f"gserp.{_name}")
|
|
34
|
+
sys.modules[f"{__name__}.{_name}"] = _module
|
|
35
|
+
setattr(sys.modules[__name__], _name, _module)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def main() -> int:
|
|
39
|
+
"""The old command, `google-browser-scraper`: the `gserp` CLI."""
|
|
40
|
+
from gserp.cli import main as gserp_main
|
|
41
|
+
|
|
42
|
+
return gserp_main()
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
del _name, _module, gserp
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: google-browser-scraper
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Renamed to gserp. Installing this installs gserp and keeps the old command and import working.
|
|
5
|
+
Author: NodeMaven
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Source, https://github.com/nodemaven/gserp
|
|
8
|
+
Project-URL: New package, https://pypi.org/project/gserp/
|
|
9
|
+
Classifier: Development Status :: 7 - Inactive
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Requires-Python: >=3.10
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: gserp>=0.2.0
|
|
15
|
+
Provides-Extra: nodemaven
|
|
16
|
+
Requires-Dist: gserp[nodemaven]>=0.2.0; extra == "nodemaven"
|
|
17
|
+
Provides-Extra: cloak
|
|
18
|
+
Requires-Dist: gserp[cloak]>=0.2.0; extra == "cloak"
|
|
19
|
+
Provides-Extra: all
|
|
20
|
+
Requires-Dist: gserp[all]>=0.2.0; extra == "all"
|
|
21
|
+
Provides-Extra: dev
|
|
22
|
+
Requires-Dist: gserp[dev]>=0.2.0; extra == "dev"
|
|
23
|
+
Dynamic: license-file
|
|
24
|
+
|
|
25
|
+
# google-browser-scraper is now gserp
|
|
26
|
+
|
|
27
|
+
This project was renamed to [gserp](https://pypi.org/project/gserp/).
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
pip install gserp
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Installing `google-browser-scraper` installs `gserp` and keeps the old names working: the `google-browser-scraper` command,
|
|
34
|
+
`import google_browser_scraper` (with a deprecation warning) and the `GBS_*`
|
|
35
|
+
environment variables. New code should use `gserp`, `import gserp` and
|
|
36
|
+
`GSERP_*`.
|
|
37
|
+
|
|
38
|
+
Source and documentation: https://github.com/nodemaven/gserp
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
src/google_browser_scraper/__init__.py
|
|
5
|
+
src/google_browser_scraper/__main__.py
|
|
6
|
+
src/google_browser_scraper.egg-info/PKG-INFO
|
|
7
|
+
src/google_browser_scraper.egg-info/SOURCES.txt
|
|
8
|
+
src/google_browser_scraper.egg-info/dependency_links.txt
|
|
9
|
+
src/google_browser_scraper.egg-info/entry_points.txt
|
|
10
|
+
src/google_browser_scraper.egg-info/requires.txt
|
|
11
|
+
src/google_browser_scraper.egg-info/top_level.txt
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
recursive-include tests *.py
|