How to check the historical price of stock by mobile phone? Download the historical data of stock online by mobile phone

Time:2021-2-27

It’s not convenient to check the stock historical price data by mobile phone sometimes. Today, we introduce a tool that can download the stock historical data by mobile phone online. We don’t need to download any software and free tools (otherwise, we won’t recommend it… Mobile phone is almost replacing the computer now, and there are many downloads by mobile phone, so we recommend it
How to check the historical price of stock by mobile phone? Download the historical data of stock online by mobile phone
Download in two steps:

  1. Fill in the stock code and email
  2. We will receive the historical data of the stock market in Excel in 5 minutes

[search Princess number [data as a service] can be downloaded in batches in 1 and 2 steps, free of charge, without forwarding and sharing. 】
It’s really helpless to download it on princess. Otherwise, it’s easy to be downloaded maliciously. It’s very convenient to download the stock history data. You can do two steps in princess. Generally, you can receive the stock history data in five minutes.
Mobile phone users can select copy [data as a service] and search for attention in Princess number. Computer users can scan code directly with mobile phone.
How to check the historical price of stock by mobile phone? Download the historical data of stock online by mobile phone
Online download is easy to be infinitely malicious download, which greatly affects the download of normal users. So later, in order to block these malicious downloading of stock history data, we set up the way of downloading through princess. Very simple, no routine restrictions, not on the princess, normal people simply can not grab those machines.

It’s because online downloading is easy to be attacked and downloaded maliciously, so we finally chose to put it on the princess. If we want to attack, we should attack the princess first. No one has such great ability. So this method [one is m fee (0 ¥), the other is long-term], and I hope you can understand it

Now do online download, are basically routine money, do not believe you have to find a circle back
How to check the historical price of stock by mobile phone? Download the historical price of stock online by mobile phone
How to check the historical price of stock by mobile phone? Download the historical price of stock online by mobile phone

import re
import pandas
import requests
Url ='the URL of the target website '# there is no link to the specific website. The general practice is the same.

response =  requests.get (URL). Text # get the source code of the web page

###The following is the code to parse the opening data, most of which can be referred to as simple regular expressions###

times =  re.findall ('class = "first left bold nowrap" > (. *?) < / td >)). Group (1) # get all historical transaction times
open_ price =  re.findall ('class = "first left bold nowrap" >. *? < / td > < s + < TD data real value = (. *?) ")). Group (1) # get all the historical opening price data
close_ price =  re.findall ('class = "first left bold nowrap" >. *? < / td > - S + < TD. *? < / td > - S + < TD data real value = (. *?) ">)). Group (1) ා get all historical closing price data
high_ price =  re.findall Group (1) obtains all historical closing price data

###The following is the data part of data download cost, take download as local excel as an example###

df =  pandas.DataFrame (a, columns=['open_ price', 'close_ Price ','vol'], which converts data into dataframe format
Wt = excelwriter (path) # path is the path to save the file, which should be accurate to the file name. After downloading the cost data, you need to go to this path.
For example: C: \ \ users \ \ administrator \ \ desktop \ \ all historical opening data of stocks download cost data. XLS just follow this path to find the saved excel

df.to_ excel(wt, sheet_ Name ='How to download the historical closing price of a stock ', index = false)