new file structure and some changes to the main file

This commit is contained in:
janis
2022-05-16 08:04:15 +02:00
parent 028b94c26c
commit e6634480c6
3 changed files with 9 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ class PriceExtractor:
def readfile(self, filename): def readfile(self, filename):
"""Reads a new file that contains links in csv format. Arguments: """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 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). the parent folder (e.g. ../pricedata/prices3.csv).
Returns the content of the file inside of a list. Returns the content of the file inside of a list.

View File

@@ -38,4 +38,4 @@ class TopGamesUpdater:
self.__go = 0 self.__go = 0
print(TopGamesUpdater().updater()) TopGamesUpdater().updater()

View File

@@ -4,10 +4,16 @@ import time
from kivy.uix.screenmanager import ScreenManager from kivy.uix.screenmanager import ScreenManager
from kivy.uix.popup import Popup from kivy.uix.popup import Popup
from kivy.lang import Builder from kivy.lang import Builder
from kivy.clock import mainthread
from kivymd.app import MDApp from kivymd.app import MDApp
from kivymd.uix.screen import MDScreen from kivymd.uix.screen import MDScreen
from kivy.clock import Clock 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()
version = "alpha 1.0" version = "alpha 1.0"