https://github.com/inndy/dmhy-sdk
a parser for dmhy
https://github.com/inndy/dmhy-sdk
Last synced: 4 months ago
JSON representation
a parser for dmhy
- Host: GitHub
- URL: https://github.com/inndy/dmhy-sdk
- Owner: Inndy
- License: mit
- Created: 2016-02-19T15:01:11.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-19T15:22:20.000Z (almost 10 years ago)
- Last Synced: 2025-09-08T08:53:52.738Z (4 months ago)
- Language: Python
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dmhy
## Desciption
a really simple library for dmhy ( http://share.dmhy.org/ )
## Functions
### search
keywords
it needs one parameter which can be a string or a list.
note that when using string type, all keywords should split by space.
return a list contains all topics in first page of searching result.
## Class
### AnimateEntry
This class contains fields such `title`, `date`, `url`, `magnet` whch
represents an animate search record.
## Installation
```
pip3 install git+https://github.com/azdkj532/dmhy-sdk.git
```
## Usage
```python
import dmhy
for record in dmhy.search('shinsekai'):
print('%s - %s\n%s' % (record.date, record.title, record.url))
```
## Dependency
- BeautifulSoup4
- requests