Git Product home page Git Product logo

autobt's Introduction

autoBT

体温の入力をサポートします

Usage

  1. メールアドレス、パスワード、生成する体温範囲を入力
#!/usr/bin/env python3
#              _        ____ _____  #
#   __ _ _   _| |_ ___ | __ )_   _| #
#  / _` | | | | __/ _ \|  _ \ | |   #
# | (_| | |_| | || (_) | |_) || |   #
#  \__,_|\__,_|\__\___/|____/ |_|   #

# consts
LOGIN_ID = "" # メールアドレスを入力
LOGIN_PW = "" # パスワードを入力
BODYTEMP_MIN = # 体温の下限を入力
BODYTEMP_MAX = # 体温の上限を入力
  1. pip3 -r requirements.txt

  2. autobt.pyを実行

screencap

autobt's People

Contributors

haru-astro avatar romophic avatar

Stargazers

 avatar

Watchers

 avatar

autobt's Issues

requestを使ってもできない

スクリーンショット 2021-07-17 18 02 23

#!/usr/bin/env python3
#              _        ____ _____  #
#   __ _ _   _| |_ ___ | __ )_   _| #
#  / _` | | | | __/ _ \|  _ \ | |   #
# | (_| | |_| | || (_) | |_) || |   #
#  \__,_|\__,_|\__\___/|____/ |_|   #

# consts
BODYTEMP_LOW = 36.5
BODYTEMP_MAX = 36.7

#rawurl = "https://docs.google.com/forms/d/e/1FAIpQLSegJ5_ypMJ10ZSQZbLH-Onkv-Ca2u0xLmJ_xNIRyfFCThM3Jw/formResponse"

rawurl = "https://docs.google.com/forms/d/e/1FAIpQLScB9j2NK_S-W_P_wekv58htLNktYRs52boYDoNjfWzY-OME8Q/formResponse"

import random
import requests

def makeBodyTemp() -> str:
  return str(int((random.randrange(int(BODYTEMP_LOW*10),int(BODYTEMP_MAX*10)+1,1)+random.randrange(int(BODYTEMP_LOW*10),int(BODYTEMP_MAX*10)+1,1))/2) / 10)

if __name__ == "__main__":
  #params = {
  #  "entry.1061678014" : "2021/07/17",
  #  "entry.1274018874" : makeBodyTemp()
  #}
  params = {
    "entry.757248886" : "2021/07/17",
    "entry.2017747901" : makeBodyTemp()
  }

  r = requests.get(rawurl,params=params)
  print(r.url)
  print(r.status_code)

こいつで送れはするけどログインの方法がわからない

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.