其实这个我从夏促前就开始写了,只不过刚好那一周撞上各种考试,所以就保证了本地Windows版本的正常运行,Linux的就没动,等到周末再干的时候夏促已经开始了……

为啥我要做这个?主要是学生党又不是天天开电脑,像TemperMonkey的那种自动探索队列的脚本或者是Steam++里面带的那个,都要打开电脑,再去打开浏览器或者是Steam,所以我就做了一个这个不需要打开任何东西的。

因为完成太晚了,所以等到冬促的时候我再去推广吧,要是有哪位大哥愿意帮我推广的尽管发就行了,发完了站内艾特一下我~

先点个STAR✨,我们马上开始教学!

简体中文

变量获取

先打开Steam商店,正常登陆,然后按下F12打开开发者工具,在选项卡里面找到网络(Network),刷新一下,在左侧找到store.steampowered.com,点击一下,然后在右侧下拉找到Cookie,把里面的东西复制出来

如果你选择用Action运行,,那么把Cookie复制下来后直接进入[Action环节](#在Github Action运行)

如果你选择服务器运行,那么你需要运行一下ConvertCookie.py,输入你的cookie字符串,然后打开cookie.txt就可以看到用于填在config.json的cookie了,复制出来,填在配置文件的cookie配置里面,如果你使用Action运行

如果你的电脑没有Python环境,或者你没有clone本仓库,你也可以打开这个网站字符串在线替换 - so工具 (sotool.net),然后在这里完成替换操作,替换的要求就是把双引号"替换为单引号'(注意要半角符号不是全角符号)

在Github Action运行

首先先打开仓库页面,Fork一份 -> ElainaMoe/SteamAutoQueue: 利用Github Action来Steam自动探索队列,不是油猴脚本,不需要打开浏览器或者Steam就可以运行,促销期间必备!

然后点击Settings -> Secrets -> Actions,进入变量添加页面

添加如图所示的变量,变量获取请查看这里,你只需要添加名为COOKIE的变量即可,内容是你的COOKIE

当然你也可以把Cookie用仓库里自带的SetCookie.py脚本放到你的Redis数据库里(填写config.jsonSteam相关字段后,只需要把Steam键下的内容贴进脚本里设置就行了),这样你就不需要一个一个加,但是不是所有人都有数据库,所以说没有数据库的话就一个一个来吧。

添加完后点击顶上导航栏的Action按钮,然后点击中间的绿色按钮开启Action

然后按照如图所示的方式打开两个Action脚本

打开后可以运行一次看看结果,一般来说没有打叉就是没啥问题了

运行结果应该像下面这个这样(注:我这里Cookie的设置方式不太一样,我放在了Redis里面)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
2022-07-02 09:15:54:INFO:
__ _ _ _ ____
/ _\ |_ ___ __ _ _ __ ___ /_\ _ _| |_ ___ /___ \_ _ ___ _ _ ___
\ \| __/ _ \/ _` | '_ ` _ \ //_\\| | | | __/ _ \ // / / | | |/ _ \ | | |/ _ \
_\ \ || __/ (_| | | | | | | / _ \ |_| | || (_) | / \_/ /| |_| | __/ |_| | __/
\__/\__\___|\__,_|_| |_| |_| \_/ \_/\__,_|\__\___/ \___,_\ \__,_|\___|\__,_|\___|
-- Made by GamerNoTitle
2022-07-02 09:15:55:INFO:[SteamAutoQueue] Cookie get from Redis
2022-07-02 09:15:55:INFO:[SteamAutoQueue] Initalizing instance...
2022-07-02 09:15:56:INFO:[SteamAutoQueue] Instance initalized.
2022-07-02 09:15:56:INFO:[SteamAutoQueue] Trying to access steam store.
2022-07-02 09:15:57:INFO:[SteamAutoQueue] Successfully access steam store. Adding cookie...
2022-07-02 09:15:57:INFO:[SteamAutoQueue] Successfully add cookie.
2022-07-02 09:15:59:INFO:[SteamAutoQueue] You have been logged in as
2022-07-02 09:15:59:INFO:[SteamAutoQueue] Try to start the queue.
2022-07-02 09:15:59:INFO:[SteamAutoQueue] Start the queue failed, maybe you have already started a queue.
2022-07-02 09:15:59:INFO:[SteamAutoQueue] We will try to spawn a new one.
2022-07-02 09:16:06:INFO:[SteamAutoQueue] Starting Queue No.1
2022-07-02 09:16:06:INFO:[SteamAutoQueue] Exploring 终暮黎明 with link https://store.steampowered.com/app/1823890/_/
2022-07-02 09:16:08:INFO:[SteamAutoQueue] Exploring 未命名穿越记录 with link https://store.steampowered.com/app/1548680/_/
2022-07-02 09:16:10:INFO:[SteamAutoQueue] Exploring Noctem with link https://store.steampowered.com/app/1701740/Noctem/
2022-07-02 09:16:11:INFO:[SteamAutoQueue] Exploring Dagon: by H. P. Lovecraft with link https://store.steampowered.com/app/1481400/Dagon_by_H_P_Lovecraft/
2022-07-02 09:16:13:INFO:[SteamAutoQueue] Exploring Trash Horror Collection with link https://store.steampowered.com/app/2017370/Trash_Horror_Collection/
2022-07-02 09:16:16:INFO:[SteamAutoQueue] Exploring Critters for Sale with link https://store.steampowered.com/app/1078420/Critters_for_Sale/
2022-07-02 09:16:17:INFO:[SteamAutoQueue] Exploring Will Die Alone with link https://store.steampowered.com/app/1879820/Will_Die_Alone/
2022-07-02 09:16:19:INFO:[SteamAutoQueue] Exploring Faded Stories: Greenberg with link https://store.steampowered.com/app/1837820/Faded_Stories_Greenberg/
2022-07-02 09:16:20:INFO:[SteamAutoQueue] Exploring Cyclone with link https://store.steampowered.com/app/1803590/Cyclone/
2022-07-02 09:16:23:INFO:[SteamAutoQueue] Exploring QUICKERFLAK_RUTHLESSMOD with link https://store.steampowered.com/app/2010110/QUICKERFLAK_RUTHLESSMOD/
2022-07-02 09:16:25:INFO:[SteamAutoQueue] Exploring 智能工厂大亨:序章 with link https://store.steampowered.com/app/1810980/_/
2022-07-02 09:16:26:INFO:[SteamAutoQueue] Found age check when accessing https://store.steampowered.com/agecheck/app/919290/, skipping.
2022-07-02 09:16:27:INFO:[SteamAutoQueue] Queue is empty, trying to spawn a new one.
2022-07-02 09:16:32:INFO:[SteamAutoQueue] Spawned. Now we will continue the work.
2022-07-02 09:16:32:INFO:[SteamAutoQueue] Starting Queue No.2
2022-07-02 09:16:32:INFO:[SteamAutoQueue] Exploring 元宇宙-原始世界 with link https://store.steampowered.com/app/1757830/_/
2022-07-02 09:16:34:INFO:[SteamAutoQueue] Exploring 残世界的鸢尾花 with link https://store.steampowered.com/app/1669330/_/
2022-07-02 09:16:37:INFO:[SteamAutoQueue] Exploring 重力朋克 with link https://store.steampowered.com/app/1831520/_/
2022-07-02 09:16:38:INFO:[SteamAutoQueue] Exploring 最后的夜晚 Babel with link https://store.steampowered.com/app/1436980/_Babel/
2022-07-02 09:16:40:INFO:[SteamAutoQueue] Exploring 畢業生模擬器 with link https://store.steampowered.com/app/1806070/_/
2022-07-02 09:16:41:INFO:[SteamAutoQueue] Found age check when accessing https://store.steampowered.com/agecheck/app/1762700/, skipping.
2022-07-02 09:16:43:INFO:[SteamAutoQueue] Exploring Zcrew(Z字特遣队) with link https://store.steampowered.com/app/1386650/ZcrewZ/
2022-07-02 09:16:45:INFO:[SteamAutoQueue] Exploring Firelight Fantasy: Vengeance with link https://store.steampowered.com/app/1668780/Firelight_Fantasy_Vengeance/
2022-07-02 09:16:47:INFO:[SteamAutoQueue] Exploring Orakyubu with link https://store.steampowered.com/app/1654900/Orakyubu/
2022-07-02 09:16:54:INFO:[SteamAutoQueue] Exploring Crazy Kung Fu with link https://store.steampowered.com/app/1340300/Crazy_Kung_Fu/
2022-07-02 09:16:55:INFO:[SteamAutoQueue] Exploring Gunborg: Dark Matters with link https://store.steampowered.com/app/1529160/Gunborg_Dark_Matters/
2022-07-02 09:16:57:INFO:[SteamAutoQueue] Exploring Cyrah's Ascent with link https://store.steampowered.com/app/1992850/Cyrahs_Ascent/
2022-07-02 09:16:58:INFO:[SteamAutoQueue] Queue is empty, trying to spawn a new one.
2022-07-02 09:17:03:INFO:[SteamAutoQueue] Spawned. Now we will continue the work.
2022-07-02 09:17:03:INFO:[SteamAutoQueue] Starting Queue No.3
2022-07-02 09:17:03:INFO:[SteamAutoQueue] Exploring 恋与你 Love with You with link https://store.steampowered.com/app/1814380/_Love_with_You/
2022-07-02 09:17:08:INFO:[SteamAutoQueue] Exploring 堪舆剑冢 with link https://store.steampowered.com/app/1640150/_/
2022-07-02 09:17:10:INFO:[SteamAutoQueue] Exploring Villwars with link https://store.steampowered.com/app/2013990/Villwars/
2022-07-02 09:17:11:INFO:[SteamAutoQueue] Exploring Siege of Treboulain with link https://store.steampowered.com/app/1849760/Siege_of_Treboulain/
2022-07-02 09:17:13:INFO:[SteamAutoQueue] Exploring Contract Killer with link https://store.steampowered.com/app/1588250/Contract_Killer/
2022-07-02 09:17:15:INFO:[SteamAutoQueue] Exploring Tales From Hoia Baciu Forest with link https://store.steampowered.com/app/2002560/Tales_From_Hoia_Baciu_Forest/
2022-07-02 09:17:16:INFO:[SteamAutoQueue] Exploring Endlanders : First Encounter with link https://store.steampowered.com/app/2010450/Endlanders__First_Encounter/
2022-07-02 09:17:18:INFO:[SteamAutoQueue] Exploring Flight Of Nova with link https://store.steampowered.com/app/1069190/Flight_Of_Nova/
2022-07-02 09:17:19:INFO:[SteamAutoQueue] Exploring Gary Grigsby's War in the East 2 with link https://store.steampowered.com/app/1775550/Gary_Grigsbys_War_in_the_East_2/
2022-07-02 09:17:21:INFO:[SteamAutoQueue] Exploring DOOM TOMB with link https://store.steampowered.com/app/1893050/DOOM_TOMB/
2022-07-02 09:17:22:INFO:[SteamAutoQueue] Exploring Nyaaaanvy with link https://store.steampowered.com/app/1771990/Nyaaaanvy/
2022-07-02 09:17:24:INFO:[SteamAutoQueue] Exploring Batho[tel] with link https://store.steampowered.com/app/1981590/Bathotel/
2022-07-02 09:17:25:INFO:[SteamAutoQueue] SteamAutoQueue's work has done!

无法运行/发现Bug

请带着你的运行日志到Issues · ElainaMoe/SteamAutoQueue (github.com)报个BUG吧

English

Actually I started to do this before Summer-Sale. However that week is filled with examinations. So I just guarantee the Windows local version can be run successfully and left Linux behind. When it comes to the weekend, it was the time that Summer-Sale has began……

Why I made this? For the reason that as a student, I will not open my computer everyday. The script that run on TemperMoney or the one in Steam++ need a browser or Steam client to run. So I make this one that no anything need to open.

But I finish this too late, so when it comes to the Winter-Sale that I will promote it by myself. If you’re willing to promote my script, just do it. No any permission needed. After you promote it, just left you link in the comment below. Thank you!

Give me a STAR ✨ and we will start now.

Getting variables

You need to go to Steam website and Press F12, find network and refresh the page once. Then you can find store.steampowered.com on the left side. Click on it and scroll down on the right side, and you will find cookie string.

If you run this script on Action, copy this then go to [Run on Github Action](#Run on Github Action) section

Copy that and run ConvertCookie.py, paste your cookie in it and you will find the string that need to be fill in the config.json is in the cookie.txt, copy that and fill it in the cookie key of the config file.

If you dont have a Python environment or you havent clone the source code, you can also go to Find and Replace a String - Online String Tools to finish it.

Run on Github Action

First open the repo and fork it -> ElainaMoe/SteamAutoQueue: Using Github Action to explore Steam queue every day. You will need it when it comes to the Summer/Winter Sale.

Then click on Settings -> Secrets -> Actions to enter the page to add variables

Add the variables shown on this picture, [you can know how to get then from here](#Getting variables)

YOU ONLY NEED TO ADD THE VARIABLE NAMED “COOKIE” AND FILL YOUR COOKIE IN IT, THE FOLLOWING PICTURE IS OUTDATED!

After you finishing it, click the Action button from nav-bar and click the green button on the center to turn Action on.

Then enable the two scripts like this in the picture.

After you opened them, you can run them by yourself. If it doesn’t display something wrong, then you have finished.

The result should like this (I placed the variables in my Redis)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
2022-07-02 09:15:54:INFO:
__ _ _ _ ____
/ _\ |_ ___ __ _ _ __ ___ /_\ _ _| |_ ___ /___ \_ _ ___ _ _ ___
\ \| __/ _ \/ _` | '_ ` _ \ //_\\| | | | __/ _ \ // / / | | |/ _ \ | | |/ _ \
_\ \ || __/ (_| | | | | | | / _ \ |_| | || (_) | / \_/ /| |_| | __/ |_| | __/
\__/\__\___|\__,_|_| |_| |_| \_/ \_/\__,_|\__\___/ \___,_\ \__,_|\___|\__,_|\___|
-- Made by GamerNoTitle
2022-07-02 09:15:55:INFO:[SteamAutoQueue] Cookie get from Redis
2022-07-02 09:15:55:INFO:[SteamAutoQueue] Initalizing instance...
2022-07-02 09:15:56:INFO:[SteamAutoQueue] Instance initalized.
2022-07-02 09:15:56:INFO:[SteamAutoQueue] Trying to access steam store.
2022-07-02 09:15:57:INFO:[SteamAutoQueue] Successfully access steam store. Adding cookie...
2022-07-02 09:15:57:INFO:[SteamAutoQueue] Successfully add cookie.
2022-07-02 09:15:59:INFO:[SteamAutoQueue] You have been logged in as
2022-07-02 09:15:59:INFO:[SteamAutoQueue] Try to start the queue.
2022-07-02 09:15:59:INFO:[SteamAutoQueue] Start the queue failed, maybe you have already started a queue.
2022-07-02 09:15:59:INFO:[SteamAutoQueue] We will try to spawn a new one.
2022-07-02 09:16:06:INFO:[SteamAutoQueue] Starting Queue No.1
2022-07-02 09:16:06:INFO:[SteamAutoQueue] Exploring 终暮黎明 with link https://store.steampowered.com/app/1823890/_/
2022-07-02 09:16:08:INFO:[SteamAutoQueue] Exploring 未命名穿越记录 with link https://store.steampowered.com/app/1548680/_/
2022-07-02 09:16:10:INFO:[SteamAutoQueue] Exploring Noctem with link https://store.steampowered.com/app/1701740/Noctem/
2022-07-02 09:16:11:INFO:[SteamAutoQueue] Exploring Dagon: by H. P. Lovecraft with link https://store.steampowered.com/app/1481400/Dagon_by_H_P_Lovecraft/
2022-07-02 09:16:13:INFO:[SteamAutoQueue] Exploring Trash Horror Collection with link https://store.steampowered.com/app/2017370/Trash_Horror_Collection/
2022-07-02 09:16:16:INFO:[SteamAutoQueue] Exploring Critters for Sale with link https://store.steampowered.com/app/1078420/Critters_for_Sale/
2022-07-02 09:16:17:INFO:[SteamAutoQueue] Exploring Will Die Alone with link https://store.steampowered.com/app/1879820/Will_Die_Alone/
2022-07-02 09:16:19:INFO:[SteamAutoQueue] Exploring Faded Stories: Greenberg with link https://store.steampowered.com/app/1837820/Faded_Stories_Greenberg/
2022-07-02 09:16:20:INFO:[SteamAutoQueue] Exploring Cyclone with link https://store.steampowered.com/app/1803590/Cyclone/
2022-07-02 09:16:23:INFO:[SteamAutoQueue] Exploring QUICKERFLAK_RUTHLESSMOD with link https://store.steampowered.com/app/2010110/QUICKERFLAK_RUTHLESSMOD/
2022-07-02 09:16:25:INFO:[SteamAutoQueue] Exploring 智能工厂大亨:序章 with link https://store.steampowered.com/app/1810980/_/
2022-07-02 09:16:26:INFO:[SteamAutoQueue] Found age check when accessing https://store.steampowered.com/agecheck/app/919290/, skipping.
2022-07-02 09:16:27:INFO:[SteamAutoQueue] Queue is empty, trying to spawn a new one.
2022-07-02 09:16:32:INFO:[SteamAutoQueue] Spawned. Now we will continue the work.
2022-07-02 09:16:32:INFO:[SteamAutoQueue] Starting Queue No.2
2022-07-02 09:16:32:INFO:[SteamAutoQueue] Exploring 元宇宙-原始世界 with link https://store.steampowered.com/app/1757830/_/
2022-07-02 09:16:34:INFO:[SteamAutoQueue] Exploring 残世界的鸢尾花 with link https://store.steampowered.com/app/1669330/_/
2022-07-02 09:16:37:INFO:[SteamAutoQueue] Exploring 重力朋克 with link https://store.steampowered.com/app/1831520/_/
2022-07-02 09:16:38:INFO:[SteamAutoQueue] Exploring 最后的夜晚 Babel with link https://store.steampowered.com/app/1436980/_Babel/
2022-07-02 09:16:40:INFO:[SteamAutoQueue] Exploring 畢業生模擬器 with link https://store.steampowered.com/app/1806070/_/
2022-07-02 09:16:41:INFO:[SteamAutoQueue] Found age check when accessing https://store.steampowered.com/agecheck/app/1762700/, skipping.
2022-07-02 09:16:43:INFO:[SteamAutoQueue] Exploring Zcrew(Z字特遣队) with link https://store.steampowered.com/app/1386650/ZcrewZ/
2022-07-02 09:16:45:INFO:[SteamAutoQueue] Exploring Firelight Fantasy: Vengeance with link https://store.steampowered.com/app/1668780/Firelight_Fantasy_Vengeance/
2022-07-02 09:16:47:INFO:[SteamAutoQueue] Exploring Orakyubu with link https://store.steampowered.com/app/1654900/Orakyubu/
2022-07-02 09:16:54:INFO:[SteamAutoQueue] Exploring Crazy Kung Fu with link https://store.steampowered.com/app/1340300/Crazy_Kung_Fu/
2022-07-02 09:16:55:INFO:[SteamAutoQueue] Exploring Gunborg: Dark Matters with link https://store.steampowered.com/app/1529160/Gunborg_Dark_Matters/
2022-07-02 09:16:57:INFO:[SteamAutoQueue] Exploring Cyrah's Ascent with link https://store.steampowered.com/app/1992850/Cyrahs_Ascent/
2022-07-02 09:16:58:INFO:[SteamAutoQueue] Queue is empty, trying to spawn a new one.
2022-07-02 09:17:03:INFO:[SteamAutoQueue] Spawned. Now we will continue the work.
2022-07-02 09:17:03:INFO:[SteamAutoQueue] Starting Queue No.3
2022-07-02 09:17:03:INFO:[SteamAutoQueue] Exploring 恋与你 Love with You with link https://store.steampowered.com/app/1814380/_Love_with_You/
2022-07-02 09:17:08:INFO:[SteamAutoQueue] Exploring 堪舆剑冢 with link https://store.steampowered.com/app/1640150/_/
2022-07-02 09:17:10:INFO:[SteamAutoQueue] Exploring Villwars with link https://store.steampowered.com/app/2013990/Villwars/
2022-07-02 09:17:11:INFO:[SteamAutoQueue] Exploring Siege of Treboulain with link https://store.steampowered.com/app/1849760/Siege_of_Treboulain/
2022-07-02 09:17:13:INFO:[SteamAutoQueue] Exploring Contract Killer with link https://store.steampowered.com/app/1588250/Contract_Killer/
2022-07-02 09:17:15:INFO:[SteamAutoQueue] Exploring Tales From Hoia Baciu Forest with link https://store.steampowered.com/app/2002560/Tales_From_Hoia_Baciu_Forest/
2022-07-02 09:17:16:INFO:[SteamAutoQueue] Exploring Endlanders : First Encounter with link https://store.steampowered.com/app/2010450/Endlanders__First_Encounter/
2022-07-02 09:17:18:INFO:[SteamAutoQueue] Exploring Flight Of Nova with link https://store.steampowered.com/app/1069190/Flight_Of_Nova/
2022-07-02 09:17:19:INFO:[SteamAutoQueue] Exploring Gary Grigsby's War in the East 2 with link https://store.steampowered.com/app/1775550/Gary_Grigsbys_War_in_the_East_2/
2022-07-02 09:17:21:INFO:[SteamAutoQueue] Exploring DOOM TOMB with link https://store.steampowered.com/app/1893050/DOOM_TOMB/
2022-07-02 09:17:22:INFO:[SteamAutoQueue] Exploring Nyaaaanvy with link https://store.steampowered.com/app/1771990/Nyaaaanvy/
2022-07-02 09:17:24:INFO:[SteamAutoQueue] Exploring Batho[tel] with link https://store.steampowered.com/app/1981590/Bathotel/
2022-07-02 09:17:25:INFO:[SteamAutoQueue] SteamAutoQueue's work has done!

Unable to run / Find a bug

Please go to Issues · ElainaMoe/SteamAutoQueue (github.com) and submit a issue. Thanks!