# kmy_scrap
# *`apikey search enggine scraping based!`*
***support python version 3.9.x***
## **`like this site!`**
- **_`Github`_** [link](https://github.com/search?q=)
- **_`Google`_** [link](https://google.com/search?q=)
- **_`HappyMod`_** [link](https://www.happymod.com/?q=)
- **_`Rexdl`_** [link](https://www.rexdl.com)
- **_`Ocean Of Games`_** [link](http://oceanofgames.com/)
- **_`Source Forge`_** [link](https://sourceforge.net/)
```python
# download from pip
pip install kmy-scrap
```
[https://pypi.org/project/kmy-scrap/](https://pypi.org/project/kmy-scrap/)
**`Example`**
```python
#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```
```python
#load results
from json import loads
```
### ```display the result in json form```
```python
# Search app mod result
print(loads(search_rexdl))
print(loads(search_happymod))
```
```results``` ➡️ [rexdl](response/search_app_mod.rexdl(1).json) ➡️ [happymod](response/search_app_mod.happymod().json)
```python
#Github search results
print(loads(search_github))
print(loads(searches_github))
```
```results``` ➡️ [search_github](response/github.search(page=2).json) ➡️ [searches_github](response/github.searches(page=2).json)
<hr>
```python
# 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
results [slow](response/search_app_mod.happymod().json), [fast](response/happymod_fast_m.json)
Raw data
{
"_id": null,
"home_page": "https://github.com/ExsoKamabay/Api-scrap",
"name": "kmy-scrap",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "kamabay,technology,search,information,enggine",
"author": "Exso Kamabay",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/5a/d3/08a98852e9d550b9d053a5eb51aed64bbbdd5f68f6f6d7b7b002aa20f5fc/kmy-scrap-0.1.0.tar.gz",
"platform": null,
"description": "# kmy_scrap\r\n\r\n# *`apikey search enggine scraping based!`*\r\n\r\n***support python version 3.9.x***\r\n\r\n## **`like this site!`**\r\n\r\n- **_`Github`_** [link](https://github.com/search?q=)\r\n- **_`Google`_** [link](https://google.com/search?q=)\r\n- **_`HappyMod`_** [link](https://www.happymod.com/?q=)\r\n- **_`Rexdl`_** [link](https://www.rexdl.com)\r\n- **_`Ocean Of Games`_** [link](http://oceanofgames.com/)\r\n- **_`Source Forge`_** [link](https://sourceforge.net/)\r\n\r\n\r\n```python\r\n# download from pip\r\npip install kmy-scrap\r\n```\r\n[https://pypi.org/project/kmy-scrap/](https://pypi.org/project/kmy-scrap/)\r\n\r\n**`Example`**\r\n\r\n```python \r\n#import package\r\nimport kmy_scrap\r\n\r\nsearch_app_mod = kmy_scrap.Search_App_Mod(query='free fire')\r\nsearch_rexdl = search_app_mod.rexdl(1)\r\nsearch_happymod = search_app_mod.happymod()\r\n\r\ngithub = kmy_scrap.Github(query='networking')\r\nsearch_github = github.search(page=2)# it's looking for 1 page \r\n# https://github.com/search?q=networking&page=2\r\nsearches_github = github.searches(page=2) # it searches pages starting from 1 to stop at the specified page\r\n# https://github.com/search?q=networking&page=1 and https://github.com/search?q=networking&page=2\r\n```\r\n\r\n## ```the result is still in string form, we need to import json to convert the result in json form```\r\n```python\r\n#load results\r\nfrom json import loads\r\n```\r\n### ```display the result in json form```\r\n\r\n```python\r\n# Search app mod result\r\nprint(loads(search_rexdl))\r\nprint(loads(search_happymod))\r\n```\r\n```results``` \u27a1\ufe0f [rexdl](response/search_app_mod.rexdl(1).json) \u27a1\ufe0f [happymod](response/search_app_mod.happymod().json)\r\n\r\n```python\r\n#Github search results\r\nprint(loads(search_github))\r\nprint(loads(searches_github))\r\n```\r\n```results``` \u27a1\ufe0f [search_github](response/github.search(page=2).json) \u27a1\ufe0f [searches_github](response/github.searches(page=2).json)\r\n<hr>\r\n\r\n```python\r\n# kmy_scrap\r\n'''\r\nrandom_user_agent -> (function)\r\n\r\nlist_category_OceanOfGame -> (function)\r\n\r\nGithub -> (class)\r\n |-> __init__(self,query:str) -> str:\r\n |-> total_results -> (@property)\r\n |-> search -> (method)\r\n |-> searches -> (method)\r\n\r\nGoogle -> (class)\r\n |-> __init__(self,query:str) -> str:\r\n |-> get_content -> (method)\r\n |-> search_image -> (method)\r\n |-> search_query -> (method)\r\n |-> search_video -> (method)\r\n \r\nSearch_App_Mod -> (class)\r\n |-> __init__(self,query:str) -> str:\r\n |-> happymod -> (method)\r\n |-> rexdl -> (method)\r\n |-> ocean_of_game -> (method)\r\n\r\nSourceForge -> (class)\r\n |-> __init__(self,query:str) -> str:\r\n |-> search -> (method)\r\n'''\r\nfrom kmy_scrap import *\r\n# Parameters\r\nGithub(query:str).search(page:int)\r\nGithub(query:str).searches(page:int)\r\n\r\nGoogle(query:str).get_content(url:str)\r\nGoogle(query:str).search_video(max_search:int)\r\nGoogle(query:str).search_image\r\n (\r\n start:int,\r\n related_results:bool,\r\n # filter result\r\n orientation:str, # value : portrait,landscape,square\r\n anim:str, # value : yes / no\r\n face:str, # value : yes / no\r\n size:str, # value : small,medium,large,wallpaper\r\n color:str, # value : red,orange,yellow,green,teal,purple,pink,brown,gray,white,black\r\n hl:str, # language\r\n cr:str, # country\r\n )\r\nGoogle(query:str).search_query\r\n (\r\n start:int, # start search\r\n stop:int, # end search\r\n lang:str, # language\r\n country:str, # country\r\n )\r\n \r\nSearch_App_Mod(query:str).happymod(search_mode='fast') # mode option 'fast' or 'slow'\r\nSearch_App_Mod(query:str).rexdl(page:int)\r\nSearch_App_Mod(query:str).ocean_of_game\r\n (\r\n type:str, # value : category / search\r\n page:int,\r\n )\r\n```\r\n\r\n# ```Update```\r\n\r\n- ```17-01-2022``` \r\n\r\nadd the ```ocean_of_game``` method to the ```Search_App_Mod``` class, a new ```SourceForge``` class with the ```search``` method to search.\r\n\r\n- ```29-04-2022``` \r\n\r\nadded search mode to happymod\r\n\r\nresults [slow](response/search_app_mod.happymod().json), [fast](response/happymod_fast_m.json)\r\n",
"bugtrack_url": null,
"license": "Apache License 2.0",
"summary": "search engines use scraping!",
"version": "0.1.0",
"project_urls": {
"Homepage": "https://github.com/ExsoKamabay/Api-scrap"
},
"split_keywords": [
"kamabay",
"technology",
"search",
"information",
"enggine"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5ad308a98852e9d550b9d053a5eb51aed64bbbdd5f68f6f6d7b7b002aa20f5fc",
"md5": "ee14d9ddd05dbbc2251edfa98e0327a5",
"sha256": "a3fbde3fadd064d6e4c20fb5c042b6ac48384be30e0495267b3b98f6024bae00"
},
"downloads": -1,
"filename": "kmy-scrap-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "ee14d9ddd05dbbc2251edfa98e0327a5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8950,
"upload_time": "2023-12-17T01:11:07",
"upload_time_iso_8601": "2023-12-17T01:11:07.930936Z",
"url": "https://files.pythonhosted.org/packages/5a/d3/08a98852e9d550b9d053a5eb51aed64bbbdd5f68f6f6d7b7b002aa20f5fc/kmy-scrap-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-17 01:11:07",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ExsoKamabay",
"github_project": "Api-scrap",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "kmy-scrap"
}