Skip to main content
# askfmcrawler
[![PyPI Version](https://img.shields.io/pypi/v/askfmcrawler.svg)](https://pypi.python.org/pypi/askfmcrawler)
Python askfm crawler.


## Install
```
pipenv install askfmcrawler
```

## Requirements
- Python 3.6 or higher
- selenium

## Usage
```python
from selenium import webdriver

from askfmcrawler import Crawler

driver = webdriver.Chrome('./chromedriver')

crawler = Crawler(driver)

# Crawl user questions
for article in crawler.crawl_user_questions('uehara1414test', limit=20):
print(article.question, " => ", article.answer)

# 好きなデザートは? => ガトーショコラ
# 赤信号なのに道路を渡ることはある? => ある
# ...

# Get random users and crawl questions of them
for user in crawler.crawl_random_users():
for article in crawler.crawl_user_questions(user):
print(user, article.question, " => ", article.answer)

driver.quit()
```

## Test
### Setup
- Install requiremnts with `pipenv install --dev`
- Place chromedriver to project root

### Run tests
```sh
pipenv run nosetests
```

Metadata

Release files for askfmcrawler 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for askfmcrawler 0.1.5
File Size Uploaded Provenance Actions
askfmcrawler-0.1.5.tar.gz 2.4 kB Without provenance Details for askfmcrawler-0.1.5.tar.gz

Release files / askfmcrawler-0.1.5.tar.gz

Download URL askfmcrawler-0.1.5.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d2390fcdec6c1ca1ae2ee682984ebd6bcdcc038a9c380355f4a00de62bb1777f
BLAKE2b-256 checksum
How to use checksums
91f7312252d33c027f8bdb568f88671bb5facfe2275604967d912cedc075a5b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

Security for askfmcrawler 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page