From 01f4f3d8c03e2f8046fdd6701f7c6f8d6ee70da8 Mon Sep 17 00:00:00 2001 From: bartool Date: Wed, 29 Oct 2025 21:19:50 +0100 Subject: [PATCH] cleaning and gitignore --- .gitignore | 57 ++++++++ app1.py | 24 ---- app2.py | 33 ----- app3.py | 41 ------ guitar1.html | 128 ----------------- guitar2.html | 378 --------------------------------------------------- 6 files changed, 57 insertions(+), 604 deletions(-) create mode 100644 .gitignore delete mode 100644 app1.py delete mode 100644 app2.py delete mode 100644 app3.py delete mode 100644 guitar1.html delete mode 100644 guitar2.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0537add --- /dev/null +++ b/.gitignore @@ -0,0 +1,57 @@ +# Python +__pycache__/ +*.py[cod] +*$py.class +*.so +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg + +# Virtual Environment +venv/ +.venv/ +env/ +ENV/ +.env + +# IDE specific files +.idea/ +.vscode/ +*.swp +*.swo +.DS_Store + +# Jupyter Notebook +.ipynb_checkpoints + +# Local development settings +.env.local +.env.development.local +.env.test.local +.env.production.local + +# Log files +*.log +logs/ + +# Coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +coverage.xml +*.cover \ No newline at end of file diff --git a/app1.py b/app1.py deleted file mode 100644 index 04089fe..0000000 --- a/app1.py +++ /dev/null @@ -1,24 +0,0 @@ -import gspread -from google.oauth2.service_account import Credentials - -# Zasięgi uprawnień (Sheets + Drive) -SCOPES = [ - "https://www.googleapis.com/auth/spreadsheets", - "https://www.googleapis.com/auth/drive" -] - -# Wczytanie poświadczeń -creds = Credentials.from_service_account_file("credentials.json", scopes=SCOPES) - -# Połączenie z Google Sheets -client = gspread.authorize(creds) - -# Otworzenie arkusza po nazwie -sheet = client.open("Składalnia lista gitar przychodzących ").sheet1 # sheet1 = pierwsza zakładka - -# Pobranie wszystkich danych -rows = sheet.get_all_values() - -# Wyświetlenie pierwszych 5 wierszy -for row in rows[:5]: - print(row) diff --git a/app2.py b/app2.py deleted file mode 100644 index df1824a..0000000 --- a/app2.py +++ /dev/null @@ -1,33 +0,0 @@ -import requests -from bs4 import BeautifulSoup - -# konfiguracja logowania -LOGIN_URL = "http://192.168.0.152/mayo2/login.php" -DANE_LOGOWANIA = { - "login": "twoj_login", - "pass": "twoje_haslo", - "baza": "2", # lub "2" -} - -# Tworzymy sesję -s = requests.Session() - -# Logujemy się -resp = s.post(LOGIN_URL, data=DANE_LOGOWANIA) -if "Zaloguj się" in resp.text: - print("❌ Logowanie nieudane — sprawdź login/hasło") -else: - print("✅ Zalogowano poprawnie") - -# Pobieramy stronę po zalogowaniu -url = "http://192.168.0.152/mayo2/index.php?id_zestawu=32574&id_zamowienia=7466&modul=14&pozycja=" -page = s.get(url) -page.encoding = "utf-8" - -soup = BeautifulSoup(page.text, "html.parser") - -# Szukamy modelu -model_input = soup.find("input", {"name": "s_nr_kat"}) -model = model_input.get("value") if model_input else None - -print("Model:", model) diff --git a/app3.py b/app3.py deleted file mode 100644 index 1083f90..0000000 --- a/app3.py +++ /dev/null @@ -1,41 +0,0 @@ -from bs4 import BeautifulSoup - -# 1) jeśli masz body jako string: -# html = "...." - -# 2) albo wczytaj z pliku lokalnego: -with open("guitar2.html", "r", encoding="utf-8") as f: - html = f.read() - -soup = BeautifulSoup(html, "html.parser") - -# model — najpierw input[name="s_nr_kat"] -model = None -inp = soup.find("input", {"name": "s_nr_kat"}) -if inp and inp.has_attr("value"): - model = inp["value"].strip() - -# jeśli trzeba, fallback: znajdź Model i pobierz input w następnym -if not model: - b = next((b for b in soup.find_all("b") if b.get_text(strip=True).lower() == "model"), None) - if b: - td = b.find_parent("td") - if td: - next_td = td.find_next_sibling("td") - if next_td: - inp2 = next_td.find("input") - if inp2 and inp2.has_attr("value"): - model = inp2["value"].strip() - -# nr zamówienia — span.czarnobiale (może zawierać ) -order = None -span = soup.find("span", class_="czarnobiale") -if span: - order = span.get_text(strip=True) - -# dodatkowe oczyszczanie (usuwa ewentualne spacje) -if order: - order = order.replace("\n", " ").strip() - -print("Model:", model) -print("Nr zam.:", order) diff --git a/guitar1.html b/guitar1.html deleted file mode 100644 index 774ba43..0000000 --- a/guitar1.html +++ /dev/null @@ -1,128 +0,0 @@ - - -
- Grupa -   - Model -   - Nr ser. -   - - DZZ - - - - Opis - - Odbiorca -   - P - - NTB - - CITES - - - - - - - -
-
 
- -   - - -   - -   - -   - -   - - -   - -
- - - - \ No newline at end of file diff --git a/guitar2.html b/guitar2.html deleted file mode 100644 index 472178a..0000000 --- a/guitar2.html +++ /dev/null @@ -1,378 +0,0 @@ - - - -
- -
- - - - - - -
Mayones Guitars & Basses - System Obsługi Zamówień - Wyloguj: - - kielpint - -
-
- - - - - -
- - -
- - - - - -
-
Dot. zam.: 0077/2024/1   z datą realizacji:   2024-02-29USA | Chicago Music Exchange | USA-
- - - - - - - - - - -
Grupa  Model   Nr ser.   - DZZ
Opis Odbiorca  P NTB CITES
-
-
 
- -   - - -   - -   - -   - -   - - -   - -
-
-
CITES     
Status: Data wystąpienia: Data otrzymania:
Komentarz:

SZYJKA

  Radius

  - GITARA SETIUS/REGIUS/CUSTOM / 16     - NotatkaUsuń

  DREWNO - Szyjka

  - Klon amerykański-Mahoń-Wenge-Amazakoe (11 części)     - NotatkaUsuń

  DREWNO - Podstrunnica

  - EBN / EBONY (Heban)     - NotatkaUsuń

  DREWNO - Główka

  - CP-4A / Curly Poplar 4A     - NotatkaUsuń

  WYMIARY

  - GITARA REGIUS 7/PRO 7 / Szyjka szerokość I : 49 mm     - NotatkaUsuń
  - GITARA REGIUS 7/PRO 7 / Szyjka szerokość XII : 62 mm     - NotatkaUsuń
  - GITARA REGIUS 7/PRO 7 / Szyjka szerokość XXIV : 69 mm     - NotatkaUsuń
  - GITARA SETIUS/REGIUS/CUSTOM / Szyjka grubość I : 20 mm     - NotatkaUsuń
  - GITARA SETIUS/REGIUS/CUSTOM / Szyjka grubość XII : 21 mm     - NotatkaUsuń

  MARKERY - BOK

  - SB-20 / Kropeczki (boczne) / 2mm / Fluorescencyjne / Niebieskie / Nie do jasnych krawędzi     - NotatkaUsuń

  MARKERY - FRONT

  - Bez markerów     - NotatkaUsuń

  PROGI

  - FERD WAGNER / FW 9685 / 667851 / Stainless Steel / 2,80×3,34 (1,45) / EXTRA JUMBO [JD brak] / STANDARD     - NotatkaUsuń
KONSTRUKCJA

  Konstrukcja

  - neck-thru-body (szyjka przez korpus)     - NotatkaUsuń

  Skala

  - GITARA STANDARD / 645mm (25,4")     - NotatkaUsuń
OGÓLNE

  LAMÓWKA (binding)

  - Korpus / Szyjka / Główka     - NotatkaUsuń
  - 3 częściowa / 2 x ABS Czarny + Akryl Czarny Perloid     - NotatkaUsuń
KORPUS

  DREWNO - Top

  - CP-4A / Curly Poplar 4A     - NotatkaUsuń

  DREWNO - Korpus

  - ALD-F / FLAMED ALDER (body) / Olcha Płomienista     - NotatkaUsuń

  KONFIGURACJA - Przetworniki

  - H-H     - NotatkaUsuń

  KONFIGURACJA - Potencjometry

  - CG-05T / 1 x Volume - W MIEJSCU TONE     - NotatkaUsuń
  - Przełącznik Ślizgowy     - NotatkaUsuń
KOLOR

  KOLOR - Top

  - T-DRED-G / Trans Dirty-Red Gloss (transparent brudny czerwony połysk)     - NotatkaUsuń

  KOLOR - Korpus

  - T-ANTIQUE-BLK-M / Antique Black Matt     - NotatkaUsuń

  KOLOR - Szyjka

  - T-ANTIQUE-BLK-M / Antique Black Matt     - NotatkaUsuń

  KOLOR - Główka

  - T-DRED-G / Trans Dirty-Red Gloss (transparent brudny czerwony połysk)     - NotatkaUsuń

  KOLOR - Wykończenie [K/C]

  - G+M / Gloss+Matt     - NotatkaUsuń
ELEKTRONIKA

  PRZETWORNIKI - Gitara

  - VELVETRONE / H15+H13-7-SET / STD / Ironside + Solium | 7 string | Humbucker Set     - NotatkaUsuń
  - / SPECIAL / - PINS: GOLD SCREWS     - NotatkaUsuń

  ELEKTRONIKA

  - MAYONES / Treble Bleed Mod     - NotatkaUsuń
  - BOURNS / PDA241-HTR01-504A2 | STD / Potencjometr / Volume / 500kA     - NotatkaUsuń

  PRZEŁĄCZNIKI I GNIAZDA

  - SWITCHCRAFT / C12B / Gniazdo Jack     - NotatkaUsuń
  - ELECTROSWITCH / 5-way | STD / Przełącznik / Electroswitch 5-poz Multipole (ślizgowy) - Konieczna REZERWACJA [wyklucza split na volume push-pull]     - NotatkaUsuń
AKCESORIA

  MOSTEK - Gitara

  - HIPSHOT / 41075B / 7 String / Fixed .175 / BLK     - NotatkaUsuń
  - / HYBRID GLD I / Mieszany/Mixed | BLK+GLD     - NotatkaUsuń

  STROIKI - Gitara

  - HIPSHOT / 6G000-D07-B / GripLock 3+4 / Black / Regius     - NotatkaUsuń
  - / HYBRID GLD I / Mieszany/Mixed | BLK+GLD     - NotatkaUsuń

  Siodełko

  - BT-6700-00 / Grafitowe / Graph-Tech BT-6700-00 (do 7-ki)     - NotatkaUsuń

  Gałki

  - O-Ring     - NotatkaUsuń

  AKCESORIA - Kolor

  - HYBRID GLD I / Mieszany/Mixed | BLK+GLD | (czarny mostek, złote siodełka, złote klucze, czarne motylki, czarne nakrętki, czarne śruby)     - NotatkaUsuń
DODATKI

  WYPOSAŻENIE DODATKOWE

  - SCHALLER / ZACZEPY / Zaczep Schaller Security Lock BLK (2 szt)     - NotatkaUsuń
  - / CANTO-HYBRID-DD-GUITAR / Mayones Hybrid Guitar Double Deck     - NotatkaUsuń
- -
  Notatka produkcyjna2x LD113
  Dodatkowe
  informacje
  Dodaj element -
-
- - - - - - - - -
-   Dołącz zdjęcie -
- - - -
- - - - - -
-
- -   - -   - -   - -   - -
-
- -
- - - -

-
-
-
- -


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


-


- - - - - - - - - - - - \ No newline at end of file