Merge remote-tracking branch 'origin/master'
# Conflicts: # bin/webscratching/top_games.py
This commit is contained in:
@@ -30,7 +30,7 @@ class PriceExtractor:
|
||||
|
||||
def readfile(self, filename):
|
||||
"""Reads a new file that contains links in csv format. Arguments:
|
||||
Filename. Either specify full path (e.g. /home/[username]/price_extractor/prices.csv), relative path when
|
||||
Filename. Either specify full path (e.g. /home/[username]/webscratching/prices.csv), relative path when
|
||||
inside the folder of the executable (e.g. /pricedata/prices2.csv) or inside another folder that is located in
|
||||
the parent folder (e.g. ../pricedata/prices3.csv).
|
||||
Returns the content of the file inside of a list.
|
||||
@@ -17,6 +17,7 @@ class TopGamesUpdater:
|
||||
def updater(self):
|
||||
self.__source = bin.lib.website_source_grabber.WebsiteSourceGrabber().grabber("https://store.steampowered.com/search/?filter=topsellers")
|
||||
self.list_generator()
|
||||
return self.__return_value
|
||||
|
||||
def list_generator(self):
|
||||
while self.__go == 1:
|
||||
@@ -31,10 +32,10 @@ class TopGamesUpdater:
|
||||
break
|
||||
else:
|
||||
self.__output += self.letter
|
||||
print(self.__output)
|
||||
self.__return_value.append(self.__output)
|
||||
|
||||
except ValueError:
|
||||
self.__go = 0
|
||||
|
||||
return self.__return_value
|
||||
|
||||
TopGamesUpdater().updater()
|
||||
@@ -6,10 +6,16 @@ import logging
|
||||
from kivy.uix.screenmanager import ScreenManager
|
||||
from kivy.uix.popup import Popup
|
||||
from kivy.lang import Builder
|
||||
from kivy.clock import mainthread
|
||||
from kivymd.app import MDApp
|
||||
from kivymd.uix.screen import MDScreen
|
||||
from kivy.clock import Clock
|
||||
import bin.webscratching.top_games
|
||||
import bin.lib.csv_parsers
|
||||
|
||||
|
||||
topg = bin.webscratching.top_games.TopGamesUpdater()
|
||||
cvw = bin.lib.csv_parsers.CsvWrite()
|
||||
cvr = bin.lib.csv_parsers.CsvRead()
|
||||
|
||||
config = configparser.ConfigParser()
|
||||
config.read('./config/settings.ini')
|
||||
|
||||
Reference in New Issue
Block a user