kmy_scrap
apikey search enggine scraping based!
support python version 3.9.x
like this site!
# download from pip
pip install kmy-scrap
https://pypi.org/project/kmy-scrap/
Example
#import package
import kmy_scrap
search_app_mod = kmy_scrap.Search_App_Mod(query='free fire')
search_rexdl = search_app_mod.rexdl(1)
search_happymod = search_app_mod.happymod()
github = kmy_scrap.Github(query='networking')
search_github = github.search(page=2)# it's looking for 1 page
# https://github.com/search?q=networking&page=2
searches_github = github.searches(page=2) # it searches pages starting from 1 to stop at the specified page
# https://github.com/search?q=networking&page=1 and https://github.com/search?q=networking&page=2
the result is still in string form, we need to import json to convert the result in json form
#load results
from json import loads
display the result in json form
# Search app mod result
print(loads(search_rexdl))
print(loads(search_happymod))
#Github search results
print(loads(search_github))
print(loads(searches_github))
results ➡️ search_github ➡️ searches_github
# kmy_scrap
'''
random_user_agent -> (function)
list_category_OceanOfGame -> (function)
Github -> (class)
|-> __init__(self,query:str) -> str:
|-> total_results -> (@property)
|-> search -> (method)
|-> searches -> (method)
Google -> (class)
|-> __init__(self,query:str) -> str:
|-> get_content -> (method)
|-> search_image -> (method)
|-> search_query -> (method)
|-> search_video -> (method)
Search_App_Mod -> (class)
|-> __init__(self,query:str) -> str:
|-> happymod -> (method)
|-> rexdl -> (method)
|-> ocean_of_game -> (method)
SourceForge -> (class)
|-> __init__(self,query:str) -> str:
|-> search -> (method)
'''
from kmy_scrap import *
# Parameters
Github(query:str).search(page:int)
Github(query:str).searches(page:int)
Google(query:str).get_content(url:str)
Google(query:str).search_video(max_search:int)
Google(query:str).search_image
(
start:int,
related_results:bool,
# filter result
orientation:str, # value : portrait,landscape,square
anim:str, # value : yes / no
face:str, # value : yes / no
size:str, # value : small,medium,large,wallpaper
color:str, # value : red,orange,yellow,green,teal,purple,pink,brown,gray,white,black
hl:str, # language
cr:str, # country
)
Google(query:str).search_query
(
start:int, # start search
stop:int, # end search
lang:str, # language
country:str, # country
)
Search_App_Mod(query:str).happymod(search_mode='fast') # mode option 'fast' or 'slow'
Search_App_Mod(query:str).rexdl(page:int)
Search_App_Mod(query:str).ocean_of_game
(
type:str, # value : category / search
page:int,
)
Update
17-01-2022
add the ocean_of_game method to the Search_App_Mod class, a new SourceForge class with the search method to search.
29-04-2022
added search mode to happymod
Metadata
Release files for kmy-web-scraping 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kmy-web-scraping-0.1.0.tar.gz | 9.0 kB | Without provenance | Details for kmy-web-scraping-0.1.0.tar.gz |
Release files / kmy-web-scraping-0.1.0.tar.gz
| Download URL | kmy-web-scraping-0.1.0.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f3d4a574d4f36ddac92cb9870f57cc1bd57684804d4eaee9d726b0ca1913b20
|
|
BLAKE2b-256 checksum How to use checksums |
4932f06cad16f2063eebcbadfd5f3f41218574992169bc813d5293115a3a7033
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Security for kmy-web-scraping 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.