An asynchronous Python wrapper for the Sepidar API Search.
Project description
##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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Sepidar-1.1.0.tar.gz.
File metadata
- Download URL: Sepidar-1.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fc37f490b0f132861614aa17493f7bd9087ea177c255ea940ac0b91d23b704a
|
|
| MD5 |
348f7bc21e4438b447c53eaed1a0478a
|
|
| BLAKE2b-256 |
8a9eb7dea1e3bf0fc916197df0027f12eb99d54e79b047285d3e34ed8b463be8
|
File details
Details for the file Sepidar-1.1.0-py3-none-any.whl.
File metadata
- Download URL: Sepidar-1.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df08a546ba42bb58c0ea894d049d201903201582f0dac90d6e722a27f2131700
|
|
| MD5 |
020589fc58a29913e824ffd86c6019a0
|
|
| BLAKE2b-256 |
6d430955326dc46abed1f471aab67b4900a348161ca95653a4d114d9b083269d
|