[No longer maintained] Ask.fm crawler
Project description
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
.
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
File details
Details for the file askfm.py-0.6.6.tar.gz
.
File metadata
- Download URL: askfm.py-0.6.6.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a59ebf3cc5fc7df03d743621779c7b3e7d2e1ba305dc3bbc8023aef53d9c20e2 |
|
MD5 | ac2d5b8b65864d9754549d1ef4550a95 |
|
BLAKE2b-256 | e09c49fb651a1f130bdaab62aca3089e2485b9270c1f6ad2d80e73a3a11e5578 |
File details
Details for the file askfm.py-0.6.6-py3-none-any.whl
.
File metadata
- Download URL: askfm.py-0.6.6-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3902f7fc751d241608e74ca3def6c58adc6b4a9a84444449050f1b28bb1baeb8 |
|
MD5 | 4e1b41e9284f56efa0431cd1bf27e03f |
|
BLAKE2b-256 | 1a876d0585d9be02b35f21181c13111b6a9db12d0608da4b8cd2d3d7a080506a |