![]() |
|
#1
|
|||
|
I would like to automate version checks and updates. Does Project 1999 provide a way to query the latest version?
| ||
|
#2
|
|||
|
There's no API, but there's https://www.project1999.com/ ... new patches are always posted as news items on the front page
__________________
Loramin Frostseer, Oracle of the Tribunal <Anonymous> and Fan of the "Where To Go For XP/For Treasure?" Guides Anyone can improve the wiki! If you are new to the Blue or Green servers, you can improve the wiki to earn a "welcome package" of platinum and/or gear! Send me a forum message for details. | ||
|
#3
|
|||
|
Thanks for the answer. Scraping a website for a link is far from ideal. I'll have to think of a solution. My suggestion for the website would be to simply have a file that can be downloaded that contain the version or filename of the latest release of the patch files. Just a file containing a string.
| ||
|
#4
|
|||
|
... or you could just wait until you try to login and it tells you to patch (like everyone else) [You must be logged in to view images. Log in or Register.]
__________________
Loramin Frostseer, Oracle of the Tribunal <Anonymous> and Fan of the "Where To Go For XP/For Treasure?" Guides Anyone can improve the wiki! If you are new to the Blue or Green servers, you can improve the wiki to earn a "welcome package" of platinum and/or gear! Send me a forum message for details. | ||
|
#5
|
|||
|
But why? It would be trivial to implement. I'm trying to create a launcher for linux that make it as easy as possible but for that, I need to automate the update process. Part of that process is converting everything to lower case to make sure files are all correctly overwritten. And yes I've had issues with that which is why I'm doing this.
| ||
|
#6
|
||||
|
Quote:
Code:
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as ec
from selenium.webdriver.common.by import By
options = webdriver.ChromeOptions()
options.add_experimental_option("detach", True)
options.add_experimental_option("excludeSwitches", ["enable-logging"])
driver = webdriver.Chrome(options=options)
driver.get("https://www.project1999.com/")
try:
WebDriverWait(driver, 10).until(ec.element_to_be_clickable((By.CSS_SELECTOR, "#collapseobj_module_16 > tr > td > a:nth-child(7)"))).click()
except Exception as e:
print(f"you dun goofed: {e}")
__________________
< Knights Who Say Ni >
Qeynos questing and leveling (all quests nerfed) | Off the beaten path 24-40. | |||
|
#7
|
|||
|
You ChatGPTed that didn't you [You must be logged in to view images. Log in or Register.]
__________________
Loramin Frostseer, Oracle of the Tribunal <Anonymous> and Fan of the "Where To Go For XP/For Treasure?" Guides Anyone can improve the wiki! If you are new to the Blue or Green servers, you can improve the wiki to earn a "welcome package" of platinum and/or gear! Send me a forum message for details. | ||
|
#8
|
|||
|
that? no, i use scrapers on the daily so i just Frankensteined some of my other code.
__________________
< Knights Who Say Ni >
Qeynos questing and leveling (all quests nerfed) | Off the beaten path 24-40. | ||
|
#9
|
|||||
|
Quote:
Quote:
__________________
Loramin Frostseer, Oracle of the Tribunal <Anonymous> and Fan of the "Where To Go For XP/For Treasure?" Guides Anyone can improve the wiki! If you are new to the Blue or Green servers, you can improve the wiki to earn a "welcome package" of platinum and/or gear! Send me a forum message for details. | ||||
|
#10
|
|||
|
I wouldn't put it past my former self to have used chatgpt originally, the websites I frequent are often slow to respond so I had to include a lot of wait timers and try/catches so the code wouldn't crap itself.
__________________
< Knights Who Say Ni >
Qeynos questing and leveling (all quests nerfed) | Off the beaten path 24-40. | ||
![]() |
|
|