##Sepidar Class Documentation##
Overview
The Sepidar class is designed for interacting with the Sepidar search API. It allows users to perform searches and manage search history efficiently.
Example Usage
python
Run
```python
sepidar = Sepidar("Tatlo", page=1)
results = sepidar.search()
print(results)
```
Class Definition
Features
Search Functionality: Perform searches using a specified query and page number.
Dynamic User-Agent: Automatically generates a random User-Agent string for each request.
Search History Management:
Retrieve previous search queries.
Clear search history.
Save search queries to history during searches.
Error Handling
The class handles HTTP errors by checking the response status code and printing an error message if the request fails.
It also catches exceptions related to request failures and prints an appropriate message.
Conclusion
The Sepidar class provides a simple and effective way to interact with the Sepidar search API, making it easy to perform searches and manage search history.
Raw data
{
"_id": null,
"home_page": "https://api-free.ir",
"name": "Sepidar",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "Sepidar, bot, Google, python, asynchronous, aiohttp",
"author": "Mahdi Ahmadi",
"author_email": "mahdiahmadi.1208@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/c4/23/f2f48c31f565dabf86b650394f656a3f82b54c78c9176a2b43220ac068e4/Sepidar-1.0.0.tar.gz",
"platform": null,
"description": "##Sepidar Class Documentation##\r\nOverview\r\nThe Sepidar class is designed for interacting with the Sepidar search API. It allows users to perform searches and manage search history efficiently.\r\n\r\nExample Usage\r\npython\r\nRun\r\n```python\r\nsepidar = Sepidar(\"Tatlo\", page=1)\r\nresults = sepidar.search()\r\nprint(results)\r\n```\r\nClass Definition\r\n\r\nFeatures\r\nSearch Functionality: Perform searches using a specified query and page number.\r\nDynamic User-Agent: Automatically generates a random User-Agent string for each request.\r\nSearch History Management:\r\nRetrieve previous search queries.\r\nClear search history.\r\nSave search queries to history during searches.\r\nError Handling\r\nThe class handles HTTP errors by checking the response status code and printing an error message if the request fails.\r\nIt also catches exceptions related to request failures and prints an appropriate message.\r\nConclusion\r\nThe Sepidar class provides a simple and effective way to interact with the Sepidar search API, making it easy to perform searches and manage search history.\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "An asynchronous Python wrapper for the sina API.",
"version": "1.0.0",
"project_urls": {
"Bug Tracker": "https://t.me/dev_jav",
"Documentation": "https://api-free.ir/",
"Homepage": "https://api-free.ir",
"Source Code": "https://api-free.ir/"
},
"split_keywords": [
"sepidar",
" bot",
" google",
" python",
" asynchronous",
" aiohttp"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6b65aff085777b8390ba4109af77f9a129093e602edadfc50535b2ec17981ca0",
"md5": "d647057dd3a69de8da06c13fa2bac6fa",
"sha256": "3cb01883eb26d6683e6722fa7cdcb5ef070e68ca2fabb5022b46df752c5850f2"
},
"downloads": -1,
"filename": "Sepidar-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d647057dd3a69de8da06c13fa2bac6fa",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 3384,
"upload_time": "2025-04-07T21:09:27",
"upload_time_iso_8601": "2025-04-07T21:09:27.980453Z",
"url": "https://files.pythonhosted.org/packages/6b/65/aff085777b8390ba4109af77f9a129093e602edadfc50535b2ec17981ca0/Sepidar-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c423f2f48c31f565dabf86b650394f656a3f82b54c78c9176a2b43220ac068e4",
"md5": "f0d6a3e3fa7043f52c4a3787c2819463",
"sha256": "d17da27e78c5f7c6bf79c3a169b1a3ef16cc5ffa2fc16414b798aa6027119046"
},
"downloads": -1,
"filename": "Sepidar-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "f0d6a3e3fa7043f52c4a3787c2819463",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 3371,
"upload_time": "2025-04-07T21:09:29",
"upload_time_iso_8601": "2025-04-07T21:09:29.350732Z",
"url": "https://files.pythonhosted.org/packages/c4/23/f2f48c31f565dabf86b650394f656a3f82b54c78c9176a2b43220ac068e4/Sepidar-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-04-07 21:09:29",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "sepidar"
}