OP 04 July, 2020 - 01:56 AM
import requests
from lxml import html
from bs4 import BeautifulSoup
import wget
URL = "update linke herer"
r = requests.get(url = URL)
data = r.json()
page = requests.get(data['updatelink'])
soup = BeautifulSoup(page.content, 'html.parser')
download = soup.find("a", id="download-url").get("href")
wget.download(download)
I MADE AUTO UPDATER TOOL BUT IT ALWASY DOWNLOAD FILE I WANT TO MAKE IT ONLY DOWNLOAD WHEN I RELSE NEW UPDTAE NOT EVERYTIME SAME VERSION OVER AND OWER
from lxml import html
from bs4 import BeautifulSoup
import wget
URL = "update linke herer"
r = requests.get(url = URL)
data = r.json()
page = requests.get(data['updatelink'])
soup = BeautifulSoup(page.content, 'html.parser')
download = soup.find("a", id="download-url").get("href")
wget.download(download)
I MADE AUTO UPDATER TOOL BUT IT ALWASY DOWNLOAD FILE I WANT TO MAKE IT ONLY DOWNLOAD WHEN I RELSE NEW UPDTAE NOT EVERYTIME SAME VERSION OVER AND OWER