In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article is about how python modifies motion data. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Method
1. Register the sports APP with your mobile phone number and log in.
2. Copy the relevant code and save it to a file.
Such as file name xiaomiyundong.py
3. Modify the mobile phone number and password in line 144 and save them.
4. Run the file in python environment.
Python3xiaomiyundong.py
5. You can set up scheduled tasks.
For example, the scheduled tasks set in the soft routing OpenWrt are:
018pr 19 * / usr/bin/python3
/ usr/share/XiaoMiYunDong/xiaomiyundong.py > / tmp/xiaomiyundong.log 2 > & 1
Example
#-*-coding: utf8-*-# python > = 3.8 "" of course it will be difficult to learn Python. Without good learning materials, how can you learn it? if you don't understand in learning Python, you are recommended to join the exchange group number: there are like-minded friends in the 928946953 group, help each other, there are good video tutorials and PDF in the group! and Daniel solution! "" Import requests,time,re,json,randomimport os TG_BOT_TOKEN = "# telegram bot token self-application TG_USER_ID =" # telegram user ID def telegram_bot (title Content): print ("\ n") tg_bot_token = TG_BOT_TOKEN tg_user_id = TG_USER_ID if "TG_BOT_TOKEN" in os.environ and "TG_USER_ID" in os.environ: tg_bot_token = os.environ ["TG_BOT_TOKEN"] tg_user_id = os.environ ["TG_USER_ID"] if not tg_bot_token or not tg_ User_id: print ("tg_bot_token or tg_user_id of Telegram push is not set!\ ncancel push") return print ("Telegram push starts") send_data = {"chat_id": tg_user_id "text": title +'\ n\ n'+content, "disable_web_page_preview": "true"} response = requests.post (url=' https://api.telegram.org/bot%s/sendMessage'% (tg_bot_token), data=send_data) print (response.text) now = time.strftime ("% Y-%m-%d% H:%M:%S" Time.localtime () headers = {'User-Agent':' Dalvik/2.1.0 (Linux) U; Android 9; MI 6 MIUI/20.6.18)'} # get login codedef get_code (location): code_pattern = re.compile ("(?
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.