Scraping the winning data of Numbers using Docker

――I want past data to try various things to see if the number can be predicted from the past data of Numbers ――I don't want to pollute the development environment of my PC

Use Docker

--Install Docker for Windows or Docker for Mac

I made the scraping code referring to here

-How to double or more the winning probability of Numbers 4 -Code GitHub made this time

Writing a Dockerfile is also a hassle, so use the Python image on Docker Hub

docker pull python

Start the container, go inside and execute the python code

# -The location to mount with v mounts the folder containing the python code
docker run -it -v [local folder]:/tmp python:latest /bin/bash

# get_numbers.Install the required libraries with py
pip install beautifulsoup4
pip install html5lib

# get_numbers.Run py
python get_numbers3.py
python get_numbers4.py

If it works, you will get numbers3_data.csv and numbers4_data.csv in the mounted folder.

Recommended Posts

Scraping the winning data of Numbers using Docker
Check the status of your data using pandas_profiling
Scraping the result of "Schedule-kun"
[Python] I tried collecting data using the API of wikipedia
The day of docker run (note)
Recommendation of data analysis using MessagePack
Explain the mechanism of PEP557 data class
I checked the contents of docker volume
Behind the flyer: Using Docker with Python
The story of verifying the open data of COVID-19
Get the column list & data list of CASTable
Scraping the usage history of the community cycle
Try to get the road surface condition using big data of road surface management
Verify the accuracy of the scoring formula "RC" using actual professional baseball data
Visualize the export data of Piyo log
Awareness of using Aurora Severless Data API
Plot the environmental concentration of organofluorine compounds on a map using open data
Scraping the rainfall data of the Japan Meteorological Agency and displaying it on M5Stack
An introduction to data analysis using Python-To increase the number of video views-
Note: Prepare the environment of CmdStanPy with docker
Prepare the execution environment of Python3 with Docker
Shortening the analysis time of Openpose using sound
Estimating the effect of measures using propensity scores
Exclusive release of the django app using ngrok
Dynamically display epidemic data using the Grafana Dashboard
FAQ: Why is the comparison of numbers inconsistent?
[Pandas] Basics of processing date data using dt
The story of reading HSPICE data in Python
Try using the collections module (ChainMap) of python3
Find the geometric mean of n! Using Python
Python introductory study-output of sales data using tuples-
Determine the number of classes using the Starges formula
I tried using the image filter of OpenCV
The transition of baseball as seen from the data
Download the wind data of the Japan Meteorological Agency
The story of launching python2.x jupyter notebook using docker (crushed on Saturday and Sunday)
I want to take a screenshot of the site on Docker using any font
Scraping using Python
Calculation of the shortest path using the Monte Carlo method
Scraping the usage history of the community cycle PhantomJS version
Explanation of the concept of regression analysis using python Part 2
[Python] [Word] [python-docx] Simple analysis of diff data using python
Cut a part of the string using a Python slice
Big data analysis using the data flow control framework Luigi
About the inefficiency of data transfer in luigi on-memory
Drawing on Jupyter using the plot function of pandas
The pain of gRPC using Python. November 2019. (Personal memo)
I tried clustering ECG data using the K-Shape method
Not being aware of the contents of the data in python
Explanation of the concept of regression analysis using Python Part 1
Write data to KINTONE using the Python requests module
Preparing the execution environment of PyTorch with Docker November 2019
Let's use the open data of "Mamebus" in Python
Let's analyze the emotions of Tweet using Chainer (2nd)
I tried scraping the advertisement of the pirated cartoon site
Explanation of the concept of regression analysis using Python Extra 1
Understand the status of data loss --Python vs. R
Study from the beginning of Python Hour8: Using packages
#We will automate the data aggregation of PES! part1
Let's analyze the sentiment of Tweet using Chainer (1st)
The story of using circleci to build manylinux wheels