Skip to content

kwy518/1point3acres_auto_login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

1point3acres automatic login application on Heroku

Summary

An automated Python script to get daily rewards from 1point3acres (一畝三分地), and deploy the application on Heroku.

Deployment

  1. Fork to your github repository.

  1. Create the Heroku free account.

  2. Create new app on Heruko.

  • Click New > Create New App > Create your own app name
  1. Connect with your Github.
  • Go to Deploy tab > Connect to Gtihub > Search your github repository

  1. Set up login credential.
  • Go to Setting tab > Click Reveal Config Vars
  • Create 4 pair of Key : Values
    • CHROMEDRIVER_PATH : /app/.chromedriver/bin/chromedriver
    • GOOGLE_CHROME_BIN : /app/.apt/usr/bin/google_chrome
    • USERNAME : {your own 1point3acres username}
    • PASSWORD : {your own 1point3acres password}

  1. Set up Buildpacks for Webdriver and Google Chrome.
    • Scroll down to Buildpacks > Click Add Buildpacks
    • Type 3 urls
      • https://github.com/heroku/heroku-buildpack-google-chrome
      • https://github.com/heroku/heroku-buildpack-chromedriver
      • https://github.com/heroku/heroku-buildpack-python
  2. All Done!
    • Click Open App to see the results!

Optional:

Set up Scheduler on Heroku:

  • Click Resources > Heroku Scheduler > Create Job
  • Choose Every day at ... with anytime you like
  • Copy and paste python main.py in the command input below
  • Save job

Reference

I follow this idea and instruction, and deploy the application on the Heroku, which can schedule a daily job to make the automated script more convienient.

About

1point3acres auto login and get daily reward

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages