semvec/pypi-packages huggingface dataset:
askfmcrawler 0.1.5
Python askfm crawler.

# 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
```
global-py 0.0.1
Make your python scripts globally accessible!

# GlobalPy
The package **pyglobal** allows you to execute your python scripts globally

## Available on pypi
`pip install globalpy`

## How to use?

```
globalpy --help
    usage: globalize [-h] [--setup] [--target TARGET [TARGET ...]]
                 [--pyversion PYVERSION] [--alias ALIAS [ALIAS ...]]

    optional arguments:
        -h, --help            show this help message and exit
        --setup, -s           run only once after installing module
        --target TARGET [TARGET ...], -t TARGET [TARGET ...]
                              target file that should become a global command
                              (multiple targets possible)
        --pyversion PYVERSION, -p PYVERSION
                              choose the python version to execute in
        --alias ALIAS [ALIAS ...], -a ALIAS [ALIAS ...]
                        alias for the program
```

## Demo

`globalpy -t test.py - a myalias`


![alt img <>](demo/alias.png)

When no alias is specified, the filename will be used as an alias:  

`globalpy -t test.py`


![alt img <>](demo/default.png)

## License

License can be found [here](https://github.com/frankzl/globalpy/blob/master/LICENSE)