a library for get information from Bayan weblogs (https://blog.ir)
Project description
Bayan 1.0
Weblog Class
>>> import bayan
>>> weblog = bayan.Weblog("https://ho55ein.blog.ir")
getInfo()
>>> weblog.getInfo()
{'TITLE': 'حسین نوشته ها ...', 'POSTS_COUNT': 114, 'COMMENTS_COUNT': 385}
>>>
getPages()
>>> weblog.getPages()
[{'TITLE': 'علاقه مندی ها', 'LINK': 'https://ho55ein.blog.ir/page/who-is-hossein'}, {'TITLE': 'تماس با me :)', 'LINK': 'https://ho55ein.blog.ir/page/message-to-hossein'}, {'TITLE': 'My Playlist', 'LINK': 'https://ho55ein.blog.ir/page/My-Playlist'}]
>>>
getLinks()
>>> weblog.getLinks()
[{'TITLE': 'Mr Python (Hacking With Python)', 'LINK': 'https://mrpython.blog.ir'}, {'TITLE': 'OG150 Hacking Tutorials', 'LINK': 'http://www.og150.com/tutorials.php'}]
>>>
getLastPosts()
getLastFollowers()
bayan.getChanges()
همچنین هر شیء از کلاس Weblog دارای یک متغییر یا ویژگی به نام follow_link است که لینک دنبال کردن وبلاگ مورد نظر را در خود نگه میدارد :
>>> print(weblog.follow_link)
http://blog.ir/panel/-/followed_blogs?follow=https://ho55ein.blog.ir
>>>
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 bayan-1.0.0.tar.gz.
File metadata
- Download URL: bayan-1.0.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa71511e7697c1a8932ef97cb0bad621c1c67a5b383db27e8c5b9fb49dfe9c6b
|
|
| MD5 |
26797f669b41c37f74d6cf28b4cb7162
|
|
| BLAKE2b-256 |
d9ad498ace1c54bdfc5abd1f12358684ba05e07559bb60c4c6c744915b8cd100
|
File details
Details for the file bayan-1.0.0-py3-none-any.whl.
File metadata
- Download URL: bayan-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0bba2b5ed2264a9913c92ac4394ee185117866769a7f21c25d5ae97e12b847e
|
|
| MD5 |
50a6927444dfeb8842b3cec2db95d900
|
|
| BLAKE2b-256 |
1ab3fb63a6d85dd99e8cc613634872b56fd2b19681a023bfa0a24cae2146a3ac
|