1
0

Standardized project structure

This commit is contained in:
Jon Michael Aanes 2024-01-28 22:33:30 +01:00
parent 4678f4a5c3
commit 1ad2d31f15
5 changed files with 12 additions and 7 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*.pyc
__pycache__/
/secrets.py
*.sqlite

View File

@ -10,13 +10,13 @@ import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
import playstation import personal_data.fetchers.playstation
import crunchyroll import personal_data.fetchers.crunchyroll
def determine_scrapers(): def determine_scrapers():
scrapers = [] scrapers = []
#scrapers += playstation.SCRAPERS #scrapers += personal_data.fetchers.playstation.SCRAPERS
scrapers += crunchyroll.SCRAPERS scrapers += personal_data.fetchers.crunchyroll.SCRAPERS
return scrapers return scrapers
def extend_csv_file(filename, new_dicts , deduplicate = False): def extend_csv_file(filename, new_dicts , deduplicate = False):

View File

@ -1,8 +1,9 @@
from data import Scraper
import secrets import secrets
import functools import functools
import logging import logging
from personal_data.data import Scraper
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
API_ROOT = 'https://www.crunchyroll.com' API_ROOT = 'https://www.crunchyroll.com'

View File

@ -1,8 +1,8 @@
from data import Scraper
import secrets import secrets
import logging import logging
from personal_data.data import Scraper
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
URL_RECENTLY_PLAYED_HTML = 'https://library.playstation.com/recently-played' URL_RECENTLY_PLAYED_HTML = 'https://library.playstation.com/recently-played'