askfm.py

Ask.fm crawler
WARNING: this library is no longer maintained
askfm.py is no longer maintained. Please consider using other library if you want to crawl ask.fm.
Install
$ pip install askfm.py
Example
This program shows recent 25 answers of ezoeryou.
import askfm
crawler = askfm.Crawler('ezoeryou')
for pair in crawler.crawl():
print(pair.question, '->', pair.answer)
Document
askfm.Crawler(username)
Initializes ask.fm crawler.
username: the username you want to crawl answers.
askfm.Crawler.crawl(page)
Fetches at most 25 answers and returns iterator of list of answers.
page: the offset page. The default value is0, this means crawing at the top of answers.
askfm.Crawler.pager(page)
A generator that yields askfm.Crawler.crawl(page) continuously.
Uses like this:
# offset_page is given
for page in crawler.pager(offset_page):
for pair in page:
print(pair.question, pair.answer)
page: the offset page. The default value is0, this means crawing at the top of answers.
askfm.Answers
An iterator of continuous askfm.Pair objects.
askfm.Pair
An object representing for pair of question and answer.
You can get them with askfm.Pair.question and askfm.Pair.answer.
Metadata
Release files for askfm.py 0.6.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| askfm.py-0.6.6.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| askfm.py-0.6.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.2 kB
Release files / askfm.py-0.6.6.tar.gz
| Download URL | askfm.py-0.6.6.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a59ebf3cc5fc7df03d743621779c7b3e7d2e1ba305dc3bbc8023aef53d9c20e2
|
|
BLAKE2b-256 checksum How to use checksums |
e09c49fb651a1f130bdaab62aca3089e2485b9270c1f6ad2d80e73a3a11e5578
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.5
|
Release files / askfm.py-0.6.6-py3-none-any.whl
| Download URL | askfm.py-0.6.6-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3902f7fc751d241608e74ca3def6c58adc6b4a9a84444449050f1b28bb1baeb8
|
|
BLAKE2b-256 checksum How to use checksums |
1a876d0585d9be02b35f21181c13111b6a9db12d0608da4b8cd2d3d7a080506a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.5
|