https://github.com/h-alice/piday-crawler
This is a little script to get pi digits and pretty print.
https://github.com/h-alice/piday-crawler
crawler
Last synced: 12 months ago
JSON representation
This is a little script to get pi digits and pretty print.
- Host: GitHub
- URL: https://github.com/h-alice/piday-crawler
- Owner: h-alice
- Created: 2024-04-04T04:26:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-04T11:08:11.000Z (about 2 years ago)
- Last Synced: 2024-04-04T12:28:10.328Z (about 2 years ago)
- Topics: crawler
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Pi Day Crawler for 1M Digits of Pi
# Introduction
This is a simple crawler script that fetches the first 1M digits of Pi from the website [piday.org](http://www.piday.org/million/). The crawler is written in Python and uses the `requests` library to fetch the webpage and equipped with a pretty-printer to display the digits in a more readable format.
# Requirements
- Python 3.x (Written and tested on Python 3.11)
- requests library (install using `pip install requests`)
# How to Use
1. Clone the repository or download the `crawler.py` file.
2. Install the `requests` if you haven't already.
```bash
pip install requests
```
3. Run the script! Or use `--help` flag to see the available options.
```bash
python crawler.py
```
# Sample Output
```bash
$ python crawler.py 100
3.14159 26535 89793 23846 26433 83279 50288 41971 69399 37510
58209 74944 59230 78164 06286 20899 86280 34825 34211 70679
```