A script to finish XuexiQiangguo's everyday task automatically.
This is a completely rewrite, you can see CHANGELOG.md for more info.
- Prepare Python
We need Python 3.11 and above. Because we useSelfin function signature andasyncio.TaskGroupin code, which are only available on 3.11 and later. - Install Poetry
We usepoetryto manage dependencies. See here for more info. For Linux users, we strongly recommend using your distribution's package manager to install poetry. For Arch Linux, you can run# pacman -Sy python-poetryto achieve that. - Install dependencies
Open a terminal, go to where the repository is, and runpoetry installto install dependencies. Poetry will create virtual environment automatically. We have set mirror site of pypi in China so it should not spend too much time. Note: If you want to download video on test pages to help solving questions, you must also install optional dependencypython-ffmpegand its dependencies. - Install Qt binding
This is only needed if you want to use GUI, you can runpoetry install --with=guiin repository directory to install it. - Build and install the project
Although you can run the program now, it is more convenient to build a wheel package and install the package to system. If you want to run from source, you can skip this step.
Open a terminal, go to where the repository is, runpoetry build, after command finished, you will find package atdistfolder of repository..whlpackage can be installed bypip installcommand. - Install browser
Playwright needs the browsers are installed. If you installed the whl package, Playwright's CLI toolplaywrightshould also be installed. You can runplaywright installto install all the browsers needed.
If you choose to run from source, you can runpoetry run playwright installto finish installing browsers.
Browsers' installing may meet very slow speed, you can see here for possible solution. - Run from source without building
You may don't want to build the project and want to run from source instead. You should open a terminal, go to where the repository is, runpoetry run autoxuexiplaywrightto start the program. If you are running program from built package, you should skip this step. - Run from built package
If you are running program from built package, you can simply runautoxuexiplaywrightfrom terminal.
For Arch Linux users, we provide a PKGBUILD which may be useful for you.
-
This tool is under heavy development and may not as stable as other tools. Some features may also don't work as expected. Everyone's pull request to improve this tool is welcome.
-
This tool is designed only finishing tasks listed on website, your max score in one day is 35 after using this tool correctly because some tasks are only available on mobile app.
-
This tool is just for researching purpose, we don't be responsible for any result by using this tool.