sis-scraper 1.0.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.
- sis_scraper-1.0.0/LICENSE +21 -0
- sis_scraper-1.0.0/PKG-INFO +117 -0
- sis_scraper-1.0.0/README.md +87 -0
- sis_scraper-1.0.0/pyproject.toml +35 -0
- sis_scraper-1.0.0/setup.cfg +4 -0
- sis_scraper-1.0.0/setup.py +51 -0
- sis_scraper-1.0.0/sis_scraper/__init__.py +41 -0
- sis_scraper-1.0.0/sis_scraper.egg-info/PKG-INFO +117 -0
- sis_scraper-1.0.0/sis_scraper.egg-info/SOURCES.txt +10 -0
- sis_scraper-1.0.0/sis_scraper.egg-info/dependency_links.txt +1 -0
- sis_scraper-1.0.0/sis_scraper.egg-info/entry_points.txt +2 -0
- sis_scraper-1.0.0/sis_scraper.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 userpro024
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sis-scraper
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Scraper para consultar datos del SIS de Perú con anti-detección y caché
|
|
5
|
+
Home-page: https://github.com/userpro024/sis-scraper
|
|
6
|
+
Author: Alex Guillen
|
|
7
|
+
Author-email: Alex Guillen <payments539@gmail.com>
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Homepage, https://github.com/tu-usuario/sis-scraper
|
|
10
|
+
Project-URL: Documentation, https://github.com/tu-usuario/sis-scraper#readme
|
|
11
|
+
Project-URL: Repository, https://github.com/tu-usuario/sis-scraper.git
|
|
12
|
+
Project-URL: Issues, https://github.com/tu-usuario/sis-scraper/issues
|
|
13
|
+
Keywords: sis,scraper,peru,salud,seguro
|
|
14
|
+
Classifier: Development Status :: 4 - Beta
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Requires-Python: >=3.8
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
License-File: LICENSE
|
|
26
|
+
Dynamic: author
|
|
27
|
+
Dynamic: home-page
|
|
28
|
+
Dynamic: license-file
|
|
29
|
+
Dynamic: requires-python
|
|
30
|
+
|
|
31
|
+
# SIS Scraper 🏥
|
|
32
|
+
|
|
33
|
+
Librería Python para consultas con anti-detección y caché.
|
|
34
|
+
|
|
35
|
+
## Características
|
|
36
|
+
|
|
37
|
+
- ✅ **Anti-detección**: User-Agent rotation, headers spoofing, delays aleatorios
|
|
38
|
+
- ✅ **Caché SQLite**: Guarda resultados por 1 año (configurable)
|
|
39
|
+
- ✅ **OCR automático**: Resuelve CAPTCHAs con ddddocr + OpenCV
|
|
40
|
+
- ✅ **Reintentos automáticos**: Si falla el captcha, reintenta
|
|
41
|
+
|
|
42
|
+
## Instalación
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# Desde el directorio del proyecto
|
|
46
|
+
pip install -e .
|
|
47
|
+
|
|
48
|
+
# O instalación normal
|
|
49
|
+
pip install .
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Uso Rápido
|
|
53
|
+
|
|
54
|
+
```python
|
|
55
|
+
from sis_scraper import SisScraperAntiDeteccion
|
|
56
|
+
|
|
57
|
+
# Crear scraper
|
|
58
|
+
scraper = SisScraperAntiDeteccion()
|
|
59
|
+
|
|
60
|
+
# Consultar DNI (con reintentos automáticos)
|
|
61
|
+
resultado = scraper.consultar_con_reintentos("12345678")
|
|
62
|
+
|
|
63
|
+
if resultado["exito"]:
|
|
64
|
+
print(f"Nombre: {resultado['datos_personales']['nombre']}")
|
|
65
|
+
print(f"Estado: {resultado['datos_personales']['estado']}")
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Uso como CLI
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
# Si instalaste el paquete
|
|
72
|
+
sis-scraper
|
|
73
|
+
|
|
74
|
+
# O directamente
|
|
75
|
+
python -m sis_scraper.scraper
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Configuración
|
|
79
|
+
|
|
80
|
+
```python
|
|
81
|
+
# Cambiar duración del caché (en horas)
|
|
82
|
+
scraper = SisScraperAntiDeteccion(cache_horas=720) # 30 días
|
|
83
|
+
|
|
84
|
+
# Cambiar ubicación de la base de datos
|
|
85
|
+
scraper = SisScraperAntiDeteccion(db_path="/ruta/mi_cache.db")
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Estructura del Resultado
|
|
89
|
+
|
|
90
|
+
```json
|
|
91
|
+
{
|
|
92
|
+
"exito": true,
|
|
93
|
+
"mensaje": "Consulta exitosa",
|
|
94
|
+
"datos_personales": {
|
|
95
|
+
"nombre": "APELLIDO APELLIDO NOMBRE",
|
|
96
|
+
"documento": "DNI 12345678",
|
|
97
|
+
"afiliacion": "2-12345678",
|
|
98
|
+
"tipo_asegurado": "TITULAR",
|
|
99
|
+
"estado": "ACTIVO"
|
|
100
|
+
},
|
|
101
|
+
"afiliaciones": [...]
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Dependencias
|
|
106
|
+
|
|
107
|
+
- requests
|
|
108
|
+
- beautifulsoup4
|
|
109
|
+
- ddddocr
|
|
110
|
+
- opencv-python
|
|
111
|
+
- Pillow
|
|
112
|
+
- lxml
|
|
113
|
+
- fake-useragent (opcional)
|
|
114
|
+
|
|
115
|
+
## Licencia
|
|
116
|
+
|
|
117
|
+
MIT
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# SIS Scraper 🏥
|
|
2
|
+
|
|
3
|
+
Librería Python para consultas con anti-detección y caché.
|
|
4
|
+
|
|
5
|
+
## Características
|
|
6
|
+
|
|
7
|
+
- ✅ **Anti-detección**: User-Agent rotation, headers spoofing, delays aleatorios
|
|
8
|
+
- ✅ **Caché SQLite**: Guarda resultados por 1 año (configurable)
|
|
9
|
+
- ✅ **OCR automático**: Resuelve CAPTCHAs con ddddocr + OpenCV
|
|
10
|
+
- ✅ **Reintentos automáticos**: Si falla el captcha, reintenta
|
|
11
|
+
|
|
12
|
+
## Instalación
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
# Desde el directorio del proyecto
|
|
16
|
+
pip install -e .
|
|
17
|
+
|
|
18
|
+
# O instalación normal
|
|
19
|
+
pip install .
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Uso Rápido
|
|
23
|
+
|
|
24
|
+
```python
|
|
25
|
+
from sis_scraper import SisScraperAntiDeteccion
|
|
26
|
+
|
|
27
|
+
# Crear scraper
|
|
28
|
+
scraper = SisScraperAntiDeteccion()
|
|
29
|
+
|
|
30
|
+
# Consultar DNI (con reintentos automáticos)
|
|
31
|
+
resultado = scraper.consultar_con_reintentos("12345678")
|
|
32
|
+
|
|
33
|
+
if resultado["exito"]:
|
|
34
|
+
print(f"Nombre: {resultado['datos_personales']['nombre']}")
|
|
35
|
+
print(f"Estado: {resultado['datos_personales']['estado']}")
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Uso como CLI
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
# Si instalaste el paquete
|
|
42
|
+
sis-scraper
|
|
43
|
+
|
|
44
|
+
# O directamente
|
|
45
|
+
python -m sis_scraper.scraper
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Configuración
|
|
49
|
+
|
|
50
|
+
```python
|
|
51
|
+
# Cambiar duración del caché (en horas)
|
|
52
|
+
scraper = SisScraperAntiDeteccion(cache_horas=720) # 30 días
|
|
53
|
+
|
|
54
|
+
# Cambiar ubicación de la base de datos
|
|
55
|
+
scraper = SisScraperAntiDeteccion(db_path="/ruta/mi_cache.db")
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Estructura del Resultado
|
|
59
|
+
|
|
60
|
+
```json
|
|
61
|
+
{
|
|
62
|
+
"exito": true,
|
|
63
|
+
"mensaje": "Consulta exitosa",
|
|
64
|
+
"datos_personales": {
|
|
65
|
+
"nombre": "APELLIDO APELLIDO NOMBRE",
|
|
66
|
+
"documento": "DNI 12345678",
|
|
67
|
+
"afiliacion": "2-12345678",
|
|
68
|
+
"tipo_asegurado": "TITULAR",
|
|
69
|
+
"estado": "ACTIVO"
|
|
70
|
+
},
|
|
71
|
+
"afiliaciones": [...]
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Dependencias
|
|
76
|
+
|
|
77
|
+
- requests
|
|
78
|
+
- beautifulsoup4
|
|
79
|
+
- ddddocr
|
|
80
|
+
- opencv-python
|
|
81
|
+
- Pillow
|
|
82
|
+
- lxml
|
|
83
|
+
- fake-useragent (opcional)
|
|
84
|
+
|
|
85
|
+
## Licencia
|
|
86
|
+
|
|
87
|
+
MIT
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=45", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "sis-scraper"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "Scraper para consultar datos del SIS de Perú con anti-detección y caché"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.8"
|
|
11
|
+
license = {text = "MIT"}
|
|
12
|
+
authors = [
|
|
13
|
+
{name = "Alex Guillen", email = "payments539@gmail.com"},
|
|
14
|
+
]
|
|
15
|
+
keywords = ["sis", "scraper", "peru", "salud", "seguro"]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 4 - Beta",
|
|
18
|
+
"Intended Audience :: Developers",
|
|
19
|
+
"License :: OSI Approved :: MIT License",
|
|
20
|
+
"Programming Language :: Python :: 3",
|
|
21
|
+
"Programming Language :: Python :: 3.8",
|
|
22
|
+
"Programming Language :: Python :: 3.9",
|
|
23
|
+
"Programming Language :: Python :: 3.10",
|
|
24
|
+
"Programming Language :: Python :: 3.11",
|
|
25
|
+
"Programming Language :: Python :: 3.12",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
[project.urls]
|
|
29
|
+
Homepage = "https://github.com/tu-usuario/sis-scraper"
|
|
30
|
+
Documentation = "https://github.com/tu-usuario/sis-scraper#readme"
|
|
31
|
+
Repository = "https://github.com/tu-usuario/sis-scraper.git"
|
|
32
|
+
Issues = "https://github.com/tu-usuario/sis-scraper/issues"
|
|
33
|
+
|
|
34
|
+
[project.scripts]
|
|
35
|
+
sis-scraper = "sis_scraper.scraper:main"
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Setup para instalar sis_scraper como paquete
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from setuptools import setup, find_packages
|
|
6
|
+
|
|
7
|
+
with open("README.md", "r", encoding="utf-8") as f:
|
|
8
|
+
long_description = f.read()
|
|
9
|
+
|
|
10
|
+
setup(
|
|
11
|
+
name="sis-scraper",
|
|
12
|
+
version="1.0.0",
|
|
13
|
+
author="Alex Guillen",
|
|
14
|
+
author_email="payments539@gmail.com",
|
|
15
|
+
description="Scraper para consultar el SIS",
|
|
16
|
+
long_description=long_description,
|
|
17
|
+
long_description_content_type="text/markdown",
|
|
18
|
+
url="https://github.com/userpro024/sis-scraper",
|
|
19
|
+
packages=find_packages(),
|
|
20
|
+
classifiers=[
|
|
21
|
+
"Development Status :: 4 - Beta",
|
|
22
|
+
"Intended Audience :: Developers",
|
|
23
|
+
"License :: OSI Approved :: MIT License",
|
|
24
|
+
"Operating System :: OS Independent",
|
|
25
|
+
"Programming Language :: Python :: 3",
|
|
26
|
+
"Programming Language :: Python :: 3.8",
|
|
27
|
+
"Programming Language :: Python :: 3.9",
|
|
28
|
+
"Programming Language :: Python :: 3.10",
|
|
29
|
+
"Programming Language :: Python :: 3.11",
|
|
30
|
+
"Programming Language :: Python :: 3.12",
|
|
31
|
+
],
|
|
32
|
+
python_requires=">=3.8",
|
|
33
|
+
install_requires=[
|
|
34
|
+
"requests>=2.31.0",
|
|
35
|
+
"beautifulsoup4>=4.12.0",
|
|
36
|
+
"urllib3>=2.0.0",
|
|
37
|
+
"lxml>=4.9.0",
|
|
38
|
+
"Pillow>=10.0.0",
|
|
39
|
+
"ddddocr>=1.4.0",
|
|
40
|
+
"opencv-python>=4.8.0",
|
|
41
|
+
"numpy>=1.24.0",
|
|
42
|
+
],
|
|
43
|
+
extras_require={
|
|
44
|
+
"anti-detection": ["fake-useragent>=1.4.0"],
|
|
45
|
+
},
|
|
46
|
+
entry_points={
|
|
47
|
+
"console_scripts": [
|
|
48
|
+
"sis-scraper=sis_scraper.scraper:main",
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"""
|
|
2
|
+
SIS Scraper - Librería Python para consultar el SIS de Perú
|
|
3
|
+
=============================================================
|
|
4
|
+
|
|
5
|
+
Instalación:
|
|
6
|
+
pip install git+https://github.com/tu-usuario/sis-scraper.git
|
|
7
|
+
|
|
8
|
+
Uso rápido:
|
|
9
|
+
from sis_scraper import SisScraperAntiDeteccion
|
|
10
|
+
|
|
11
|
+
scraper = SisScraperAntiDeteccion()
|
|
12
|
+
resultado = scraper.consultar_con_reintentos("60320138")
|
|
13
|
+
|
|
14
|
+
if resultado["exito"]:
|
|
15
|
+
print(resultado["datos_personales"]["nombre"])
|
|
16
|
+
|
|
17
|
+
Con caché (1 año por defecto):
|
|
18
|
+
scraper = SisScraperAntiDeteccion()
|
|
19
|
+
# Primera llamada: hace scraping
|
|
20
|
+
datos1 = scraper.consultar_con_reintentos("60320138")
|
|
21
|
+
# Segunda llamada: devuelve caché automáticamente
|
|
22
|
+
datos2 = scraper.consultar_con_reintentos("60320138")
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
__version__ = "1.0.0"
|
|
26
|
+
__author__ = "Alex Guillen"
|
|
27
|
+
__email__ = "payments539@gmail.com"
|
|
28
|
+
__license__ = "MIT"
|
|
29
|
+
__url__ = "https://github.com/tu-usuario/sis-scraper"
|
|
30
|
+
|
|
31
|
+
from .scraper import SisScraperAntiDeteccion, validar_dni
|
|
32
|
+
from .cache import CacheResultados
|
|
33
|
+
from .anti_detection import AntiDeteccion, DetectorBot
|
|
34
|
+
|
|
35
|
+
__all__ = [
|
|
36
|
+
"SisScraperAntiDeteccion",
|
|
37
|
+
"CacheResultados",
|
|
38
|
+
"AntiDeteccion",
|
|
39
|
+
"DetectorBot",
|
|
40
|
+
"validar_dni",
|
|
41
|
+
]
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sis-scraper
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Scraper para consultar datos del SIS de Perú con anti-detección y caché
|
|
5
|
+
Home-page: https://github.com/userpro024/sis-scraper
|
|
6
|
+
Author: Alex Guillen
|
|
7
|
+
Author-email: Alex Guillen <payments539@gmail.com>
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Homepage, https://github.com/tu-usuario/sis-scraper
|
|
10
|
+
Project-URL: Documentation, https://github.com/tu-usuario/sis-scraper#readme
|
|
11
|
+
Project-URL: Repository, https://github.com/tu-usuario/sis-scraper.git
|
|
12
|
+
Project-URL: Issues, https://github.com/tu-usuario/sis-scraper/issues
|
|
13
|
+
Keywords: sis,scraper,peru,salud,seguro
|
|
14
|
+
Classifier: Development Status :: 4 - Beta
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Requires-Python: >=3.8
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
License-File: LICENSE
|
|
26
|
+
Dynamic: author
|
|
27
|
+
Dynamic: home-page
|
|
28
|
+
Dynamic: license-file
|
|
29
|
+
Dynamic: requires-python
|
|
30
|
+
|
|
31
|
+
# SIS Scraper 🏥
|
|
32
|
+
|
|
33
|
+
Librería Python para consultas con anti-detección y caché.
|
|
34
|
+
|
|
35
|
+
## Características
|
|
36
|
+
|
|
37
|
+
- ✅ **Anti-detección**: User-Agent rotation, headers spoofing, delays aleatorios
|
|
38
|
+
- ✅ **Caché SQLite**: Guarda resultados por 1 año (configurable)
|
|
39
|
+
- ✅ **OCR automático**: Resuelve CAPTCHAs con ddddocr + OpenCV
|
|
40
|
+
- ✅ **Reintentos automáticos**: Si falla el captcha, reintenta
|
|
41
|
+
|
|
42
|
+
## Instalación
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# Desde el directorio del proyecto
|
|
46
|
+
pip install -e .
|
|
47
|
+
|
|
48
|
+
# O instalación normal
|
|
49
|
+
pip install .
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Uso Rápido
|
|
53
|
+
|
|
54
|
+
```python
|
|
55
|
+
from sis_scraper import SisScraperAntiDeteccion
|
|
56
|
+
|
|
57
|
+
# Crear scraper
|
|
58
|
+
scraper = SisScraperAntiDeteccion()
|
|
59
|
+
|
|
60
|
+
# Consultar DNI (con reintentos automáticos)
|
|
61
|
+
resultado = scraper.consultar_con_reintentos("12345678")
|
|
62
|
+
|
|
63
|
+
if resultado["exito"]:
|
|
64
|
+
print(f"Nombre: {resultado['datos_personales']['nombre']}")
|
|
65
|
+
print(f"Estado: {resultado['datos_personales']['estado']}")
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Uso como CLI
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
# Si instalaste el paquete
|
|
72
|
+
sis-scraper
|
|
73
|
+
|
|
74
|
+
# O directamente
|
|
75
|
+
python -m sis_scraper.scraper
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Configuración
|
|
79
|
+
|
|
80
|
+
```python
|
|
81
|
+
# Cambiar duración del caché (en horas)
|
|
82
|
+
scraper = SisScraperAntiDeteccion(cache_horas=720) # 30 días
|
|
83
|
+
|
|
84
|
+
# Cambiar ubicación de la base de datos
|
|
85
|
+
scraper = SisScraperAntiDeteccion(db_path="/ruta/mi_cache.db")
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Estructura del Resultado
|
|
89
|
+
|
|
90
|
+
```json
|
|
91
|
+
{
|
|
92
|
+
"exito": true,
|
|
93
|
+
"mensaje": "Consulta exitosa",
|
|
94
|
+
"datos_personales": {
|
|
95
|
+
"nombre": "APELLIDO APELLIDO NOMBRE",
|
|
96
|
+
"documento": "DNI 12345678",
|
|
97
|
+
"afiliacion": "2-12345678",
|
|
98
|
+
"tipo_asegurado": "TITULAR",
|
|
99
|
+
"estado": "ACTIVO"
|
|
100
|
+
},
|
|
101
|
+
"afiliaciones": [...]
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Dependencias
|
|
106
|
+
|
|
107
|
+
- requests
|
|
108
|
+
- beautifulsoup4
|
|
109
|
+
- ddddocr
|
|
110
|
+
- opencv-python
|
|
111
|
+
- Pillow
|
|
112
|
+
- lxml
|
|
113
|
+
- fake-useragent (opcional)
|
|
114
|
+
|
|
115
|
+
## Licencia
|
|
116
|
+
|
|
117
|
+
MIT
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
setup.py
|
|
5
|
+
sis_scraper/__init__.py
|
|
6
|
+
sis_scraper.egg-info/PKG-INFO
|
|
7
|
+
sis_scraper.egg-info/SOURCES.txt
|
|
8
|
+
sis_scraper.egg-info/dependency_links.txt
|
|
9
|
+
sis_scraper.egg-info/entry_points.txt
|
|
10
|
+
sis_scraper.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
sis_scraper
|