Új hozzászólás Aktív témák
-
Hege1234
addikt
válasz sztanozs #3741 üzenetére
köszi a gyors választ
innen néztem ki:
[link]
ha nem windows-on próbáltad akkor lehet gond vele
Note: A file's ctime on Linux is slightly different than on Windows.
Windows users know theirs as "creation time".
Linux users know theirs as "change time".a fájl tulajdonságait megnézve valós a nov. 02 létrehozott dátum
[ Szerkesztve ]
-
tvamos
nagyúr
válasz sztanozs #3770 üzenetére
Igy erted?
powerSuplyDrop.config(value=com_ports)
Mert ha ezt teszem, akkor a kovetkezo hibat dobja:
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python3.8/tkinter/__init__.py", line 1892, in __call__
return self.func(*args)
File "/home/tomi/Projects/GitHub/TestProjects/PySerialTest/SerialportsDropDown.py", line 68, in scan_serial_ports
powerSuplyDrop.config(value=com_ports)
NameError: name 'powerSuplyDrop' is not definedAmugy igen, combobox.
[ Szerkesztve ]
"Mindig a rossz győz, és a jó elnyeri méltó büntetését." Voga János
-
tvamos
nagyúr
válasz sztanozs #3780 üzenetére
Egy com porttal ment a programom, csak mostmar sok van. Amit javasolsz tul nagy erofeszitesnek tunik nekem es az eredmeny lehet, hogy csak rosszabb lesz. Nem tudom.
Talaltam ilyet, hogy interceptty, lehet, hogy ez mukodni fog.
[ Szerkesztve ]
"Mindig a rossz győz, és a jó elnyeri méltó büntetését." Voga János
-
Hege1234
addikt
válasz sztanozs #3779 üzenetére
ez, ami a linkben volt nagyon király
több mint 40 function-t használok
a különböző menükhöz..és csak bele kellett tennem a menükbe és már
működött is változtatás nélkül
köszi!import win32gui, win32com.client
shell = win32com.client.Dispatch("WScript.Shell")
shell.SendKeys('%')
win32gui.SetForegroundWindow(hwnd)
[ Szerkesztve ]
-
Hege1234
addikt
válasz sztanozs #3825 üzenetére
hmm valamiért közbe-közbe kihagyva írja oda
pl.
The Walking Dead - S11E22 - Hitfor match1,match2,match3,match4,match5 in zip(jsonpath_expression1.find(my_responses),jsonpath_expression2.find(my_responses),jsonpath_expression3.find(my_responses),jsonpath_expression4.find(my_responses),jsonpath_expression5.find(my_responses)):
print(f'{match1.value} - S{match2.value}E{match3.value} - {match4.value}{zold+" |Magyar felirat|"*any(a.lower()in("magyar")for a in match5.value)}')
epizod = my_responses[10]['data']['DmcEpisodes']['videos'][21]['text']['title']['slug']['program']['default']['content']
felirat = my_responses[10]['data']['DmcEpisodes']['videos'][21]['mediaMetadata']['captions'][21]['renditionName']
print('\n'+epizod+' - '+felirat)
#hit - Magyarkülön kiprintelve mutatja, hogy a hit részhez is lenne magyar felirat
[kép]próbáltam úgy is, ahogy írtad
("hu","hun","magyar")
de így egy találat se voltami még fura, hogy akkor is van találat, ha valami random betűket írok bele
{zold+" |Magyar felirat|"*any(a.lower()in("dsfgdfgh")for a in match5.value)}
ilyenkor ezeket találja meg:
[kép] -
Hege1234
addikt
válasz sztanozs #3832 üzenetére
keyerror hibát ír,
Traceback (most recent call last):
File "D:\json extract\test.py", line 141, in <module>
value1 = parse(f'{full_path}.text.title.full.series.default.content').find(value)[0].value
File "C:\Users\hadam\AppData\Local\Programs\Python\Python310\lib\site-packages\jsonpath_ng\jsonpath.py", line 265, in find
for subdata in self.left.find(datum)
File "C:\Users\hadam\AppData\Local\Programs\Python\Python310\lib\site-packages\jsonpath_ng\jsonpath.py", line 265, in find
for subdata in self.left.find(datum)
File "C:\Users\hadam\AppData\Local\Programs\Python\Python310\lib\site-packages\jsonpath_ng\jsonpath.py", line 265, in find
for subdata in self.left.find(datum)
[Previous line repeated 7 more times]
File "C:\Users\hadam\AppData\Local\Programs\Python\Python310\lib\site-packages\jsonpath_ng\jsonpath.py", line 613, in find
return self._find_base(datum, create=False)
File "C:\Users\hadam\AppData\Local\Programs\Python\Python310\lib\site-packages\jsonpath_ng\jsonpath.py", line 625, in _find_base
return [DatumInContext(datum.value[self.index], path=self, context=datum)]
KeyError: 0
de ez jót jelenthet mert az s01e01 -ben valóban nincsen magyar feliratszerk:
(kiprinteltem, hogy lássam mit szed össze)
[kép]
vagy rögtön elakadt az 1. résznél?[ Szerkesztve ]
-
sztanozs
veterán
válasz sztanozs #3832 üzenetére
Nem tudtam mar letesztelni, vsz a maradek jsont adja vissza, igy esetleg?
jsonpath_expression0 = parse('[*].data.DmcEpisodes.videos[*]')
for match0 in jsonpath_expression0.find(myresponses):
value = match0.value
value1 = parse(f'text.title.full.series.default.content').find(value)[0].value
value2 = parse(f'seasonSequenceNumber').find(value)[0].value
value3 = parse(f'episodeSequenceNumber').find(value)[0].value
value4 = parse(f'text.title.full.program.default.content').find(value)[0].value
list5 = parse(f'mediaMetadata.captions[*].renditionName').find(value)
value5 = any(a.value.lower().split()in("hunmagyar")for a in list5)
print(f'{value1} - S{value2}E{value3} - {value4}{" |Magyar felirat|"*value5}')
[ Szerkesztve ]
JOGI NYILATKOZAT: A bejegyzéseim és hozzászólásaim a személyes véleményemet tükrözik; ezek nem tekinthetők a munkáltatóm hivatalos állásfoglalásának...
-
Hege1234
addikt
válasz sztanozs #3837 üzenetére
így ezt adja vissza:
Traceback (most recent call last):
File "D:\json extract\test2.py", line 89, in <module>
value5 = any(a.value.lower().split()in("hunmagyar")for a in list5)
File "D:\json extract\test2.py", line 89, in <genexpr>
value5 = any(a.value.lower().split()in("hunmagyar")for a in list5)
TypeError: 'in <string>' requires string as left operand, not list -
Hege1234
addikt
válasz sztanozs #3839 üzenetére
ahogy néztem a renditionName-ben mindenhol a Magyar jelenti a magyar feliratot
a forced-et pedig a hu--forced--
emiatt sikerült külön szedniThe Walking Dead - S11E12 |Magyar szinkron||HD| A szerencsések
The Walking Dead - S11E13 |Magyar szinkron||Magyar forced||HD| Hadurak
The Walking Dead - S11E14 |Magyar szinkron||Magyar felirat||Magyar forced||HD| Fejétől bűzlikregex2 = r'S([1-9]*[0-9])\s?E([1-9]*[0-9]):?'
def replacer2(y):
a, b = y.groups()
return 'S' + a.rjust(2, '0') + 'E' + b.rjust(2, '0')
jsonpath_expression0 = parse('[*].data.DmcEpisodes.videos[*]')
for match0 in jsonpath_expression0.find(my_responses):
value = match0.value
value1 = parse(f'text.title.full.series.default.content').find(value)[0].value
value2 = parse(f'seasonSequenceNumber').find(value)[0].value
value3 = parse(f'episodeSequenceNumber').find(value)[0].value
value4 = parse(f'text.title.full.program.default.content').find(value)[0].value
list5 = parse(f'mediaMetadata.captions[*].renditionName').find(value)
value5 = any(a.value.lower().split()[0] in "magyar" for a in list5)
list6 = parse(f'mediaMetadata.audioTracks[*].renditionName').find(value)
value6 = any(b.value.lower().split()[0] in "magyar" for b in list6)
list7 = parse(f'mediaMetadata.captions[*].renditionName').find(value)
value7 = any(c.value.lower().split()[0] in "hu--forced--" for c in list7)
value8 = parse(f'mediaMetadata.format').find(value)[0].value
out = f'{value1} - S{value2}E{value3} {kek+"|Magyar szinkron|"*value6}{zold+"|Magyar felirat|"*value5}{sarga+"|Magyar forced|"*value7+feher}{"|"+value8+"|"} {value4}'
final_out = re.sub(regex2, replacer2, out)
print(final_out)nagyon szépen köszönöm
sok újdonságot tanultamegy kérdésem lenne még f-string -el kapcsolatban
próbáltam megadni, ha nincsen pl. Magyar szinkron akkor is írjon oda valamit{"|van Magyar szinkron|"*value6 if *value6 not in *value6 "|nincs Magyar szinkron|"}
vagy ezt az any hoz kellene beleírni?
-
sztanozs
veterán
válasz sztanozs #3841 üzenetére
out = f'{value1} - S{value2}E{value3} |{kek+["nincs","van"][value6]} Magyar szinkron|{zold+"|Magyar felirat|"*value5}{sarga+"|Magyar forced|"*value7+feher}{sarga+"|Magyar forced|"*value7+feher}{"|"+value8+"|"} {value4}'
JOGI NYILATKOZAT: A bejegyzéseim és hozzászólásaim a személyes véleményemet tükrözik; ezek nem tekinthetők a munkáltatóm hivatalos állásfoglalásának...
-
Hege1234
addikt
-
Hege1234
addikt
válasz sztanozs #3876 üzenetére
olyan esetben, ha nem lenne a
[*][*].clips[0].product.season
szám beleír egy 1-es számot
így emiatt elvileg mindennek ugyanannyinak kellene lenniede így már nem tudja sorrendbe tenni
mert ami eddig 3 részből állt így már csak kettő lett['0002']['0002', '0009']
['0002']['0002', '0010']azt gondoltam, összetéve így fogja megjeleníteni,
['0002', '0002', '0009']
vagy így[('0002', '0002', '0009')]
de ahol ugyan azok a számok vannak azokat egybetette[('0002', '0009')]
-
Oryctolagus
tag
válasz sztanozs #3884 üzenetére
igen.. kozben rajottem hogy nem lesz jo mas miatt is.
2022-11-28 10:32:00
2022-11-28 17:21:00
6:49:00
En azt szeretnem hogy a ket datum kulnbsege ora.perc formatumban legyen,
akkor is ha pl 2 nap es 8 perc a kulonbseg
Kivagyok ettol a datumozgatastol, persze azert mert nem ertem teljesenPer aspera ad astra.
-
repvez
addikt
válasz sztanozs #3941 üzenetére
és azt hogyan ?
Mert találtam egy easy bpy részt amit bemásoltam a blender addon mappába, de nem irja ki, hogy installálva lenne.ha import bpy ott van az elején ha esetleg mégis használja már.
Mert ezt a hibakodot kaptamPython: Traceback (most recent call last):
File "\Text", line 32, in <module>
File "\Text", line 20, in create_math_node
IndexError: bpy_prop_collection[index]: index 0 out of range, size 0 -
tvamos
nagyúr
válasz sztanozs #3955 üzenetére
Franko, jo is lett, csak 1 helyre kellett vegul beirni. A szivas a printekkel volt vegul, mert a mert a 2.7-ben nem kellett zarojelezni ami mogotte van. De azon is sikerult tullendulni.
Kosz a segitseget!
[ Szerkesztve ]
"Mindig a rossz győz, és a jó elnyeri méltó büntetését." Voga János
-
klambi
addikt
válasz sztanozs #4025 üzenetére
Felteszem google-be, alul a link. Szenvedek vele de csak nem jön össze... már pedig virtuál orosz wint is feldobtam igaz angol volt és utána állítottam oroszra... fene tudja, hogy ez is baj-e vagy sem de ott sem ment
Köszi!
még beleteszek egy kis helpet, amit a srác posztolt:
[link][ Szerkesztve ]
"Mond szépen angolul: Gyors róka!"
-
klambi
addikt
válasz sztanozs #4025 üzenetére
na a másik progit sikerült elindítani...:
C:\WINDOWS\system32>python --version
Python 3.10.10
C:\WINDOWS\system32>d:
D:\>cd d:\Egyebek\KMORA\MatrixConfigurator-master\
d:\Egyebek\KMORA\MatrixConfigurator-master>logger.py
d:\Egyebek\KMORA\MatrixConfigurator-master>main.py
Traceback (most recent call last):
File "D:\Egyebek\KMORA\MatrixConfigurator-master\main.py", line 7, in <module>
from PySide2 import QtWidgets, QtCore
ModuleNotFoundError: No module named 'PySide2'
d:\Egyebek\KMORA\MatrixConfigurator-master>pip install PySide2
Collecting PySide2
Downloading PySide2-5.15.2.1-5.15.2-cp35.cp36.cp37.cp38.cp39.cp310-none-win_amd64.whl (137.4 MB)
---------------------------------------- 137.4/137.4 MB 13.3 MB/s eta 0:00:00
Collecting shiboken2==5.15.2.1
Downloading shiboken2-5.15.2.1-5.15.2-cp35.cp36.cp37.cp38.cp39.cp310-none-win_amd64.whl (2.3 MB)
---------------------------------------- 2.3/2.3 MB 49.2 MB/s eta 0:00:00
Installing collected packages: shiboken2, PySide2
Successfully installed PySide2-5.15.2.1 shiboken2-5.15.2.1
[notice] A new release of pip available: 22.3.1 -> 23.1
[notice] To update, run: python.exe -m pip install --upgrade pip
d:\Egyebek\KMORA\MatrixConfigurator-master>main.py
Traceback (most recent call last):
File "D:\Egyebek\KMORA\MatrixConfigurator-master\main.py", line 8, in <module>
from asyncqt import QEventLoop, asyncSlot
File "C:\Program Files\Python310\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'asyncqt'
d:\Egyebek\KMORA\MatrixConfigurator-master>pip install asyncqt
Collecting asyncqt
Downloading asyncqt-0.8.0.tar.gz (12 kB)
Preparing metadata (setup.py) ... done
Installing collected packages: asyncqt
DEPRECATION: asyncqt is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for asyncqt ... done
Successfully installed asyncqt-0.8.0
[notice] A new release of pip available: 22.3.1 -> 23.1
[notice] To update, run: python.exe -m pip install --upgrade pip
d:\Egyebek\KMORA\MatrixConfigurator-master>setup.py
'setup.py' is not recognized as an internal or external command,
operable program or batch file.
d:\Egyebek\KMORA\MatrixConfigurator-master>python.exe -m pip install --upgrade pip
Requirement already satisfied: pip in c:\program files\python310\lib\site-packages (22.3.1)
Collecting pip
Downloading pip-23.1-py3-none-any.whl (2.1 MB)
---------------------------------------- 2.1/2.1 MB 10.1 MB/s eta 0:00:00
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 22.3.1
Uninstalling pip-22.3.1:
Successfully uninstalled pip-22.3.1
Successfully installed pip-23.1
d:\Egyebek\KMORA\MatrixConfigurator-master>pip install asyncqt
Requirement already satisfied: asyncqt in c:\program files\python310\lib\site-packages (0.8.0)
d:\Egyebek\KMORA\MatrixConfigurator-master>main.py
Traceback (most recent call last):
File "D:\Egyebek\KMORA\MatrixConfigurator-master\main.py", line 10, in <module>
import can
File "C:\Program Files\Python310\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "D:\Egyebek\KMORA\MatrixConfigurator-master\can\__init__.py", line 41, in <module>
from .bus import BusABC, BusState
File "C:\Program Files\Python310\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "D:\Egyebek\KMORA\MatrixConfigurator-master\can\bus.py", line 14, in <module>
from aenum import Enum, auto
File "C:\Program Files\Python310\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'aenum'
d:\Egyebek\KMORA\MatrixConfigurator-master>pip install aenum
Collecting aenum
Downloading aenum-3.1.12-py3-none-any.whl (131 kB)
---------------------------------------- 131.8/131.8 kB 2.6 MB/s eta 0:00:00
Installing collected packages: aenum
Successfully installed aenum-3.1.12
d:\Egyebek\KMORA\MatrixConfigurator-master>main.py
Traceback (most recent call last):
File "D:\Egyebek\KMORA\MatrixConfigurator-master\main.py", line 15, in <module>
from port import serial_ports
File "C:\Program Files\Python310\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "D:\Egyebek\KMORA\MatrixConfigurator-master\port.py", line 3, in <module>
import serial
File "C:\Program Files\Python310\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'serial'
d:\Egyebek\KMORA\MatrixConfigurator-master>pip install serial
Collecting serial
Downloading serial-0.0.97-py2.py3-none-any.whl (40 kB)
---------------------------------------- 40.9/40.9 kB 1.9 MB/s eta 0:00:00
Collecting future>=0.17.1 (from serial)
Downloading future-0.18.3.tar.gz (840 kB)
---------------------------------------- 840.9/840.9 kB 7.6 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pyyaml>=3.13 (from serial)
Downloading PyYAML-6.0-cp310-cp310-win_amd64.whl (151 kB)
---------------------------------------- 151.7/151.7 kB ? eta 0:00:00
Collecting iso8601>=0.1.12 (from serial)
Downloading iso8601-1.1.0-py3-none-any.whl (9.9 kB)
Building wheels for collected packages: future
Building wheel for future (pyproject.toml) ... done
Created wheel for future: filename=future-0.18.3-py3-none-any.whl size=492053 sha256=3ed5a781b8a7ee7b2f8dcb363e9ee51fa1e090167e18029a50cc6e8a0953f35b
Stored in directory: c:\users\klambi\appdata\local\pip\cache\wheels\5e\a9\47\f118e66afd12240e4662752cc22cefae5d97275623aa8ef57d
Successfully built future
Installing collected packages: pyyaml, iso8601, future, serial
Successfully installed future-0.18.3 iso8601-1.1.0 pyyaml-6.0 serial-0.0.97
d:\Egyebek\KMORA\MatrixConfigurator-master>main.py
Traceback (most recent call last):
File "D:\Egyebek\KMORA\MatrixConfigurator-master\port.py", line 27, in serial_ports
s = serial.Serial(port)
AttributeError: module 'serial' has no attribute 'Serial'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Egyebek\KMORA\MatrixConfigurator-master\main.py", line 1464, in <module>
window = MainApp()
File "D:\Egyebek\KMORA\MatrixConfigurator-master\main.py", line 352, in __init__
self.Port.addItems(serial_ports())
File "D:\Egyebek\KMORA\MatrixConfigurator-master\port.py", line 30, in serial_ports
except (OSError, serial.SerialException):
AttributeError: module 'serial' has no attribute 'SerialException'
d:\Egyebek\KMORA\MatrixConfigurator-master>main.py
Traceback (most recent call last):
File "D:\Egyebek\KMORA\MatrixConfigurator-master\port.py", line 27, in serial_ports
s = serial.Serial(port)
AttributeError: module 'serial' has no attribute 'Serial'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Egyebek\KMORA\MatrixConfigurator-master\main.py", line 1464, in <module>
window = MainApp()
File "D:\Egyebek\KMORA\MatrixConfigurator-master\main.py", line 352, in __init__
self.Port.addItems(serial_ports())
File "D:\Egyebek\KMORA\MatrixConfigurator-master\port.py", line 30, in serial_ports
except (OSError, serial.SerialException):
AttributeError: module 'serial' has no attribute 'SerialException'
d:\Egyebek\KMORA\MatrixConfigurator-master>main.py
Traceback (most recent call last):
File "D:\Egyebek\KMORA\MatrixConfigurator-master\port.py", line 27, in serial_ports
s = serial.Serial(port)
AttributeError: module 'serial' has no attribute 'Serial'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Egyebek\KMORA\MatrixConfigurator-master\main.py", line 1464, in <module>
window = MainApp()
File "D:\Egyebek\KMORA\MatrixConfigurator-master\main.py", line 352, in __init__
self.Port.addItems(serial_ports())
File "D:\Egyebek\KMORA\MatrixConfigurator-master\port.py", line 30, in serial_ports
except (OSError, serial.SerialException):
AttributeError: module 'serial' has no attribute 'SerialException'
d:\Egyebek\KMORA\MatrixConfigurator-master>pip install pyserial
Collecting pyserial
Downloading pyserial-3.5-py2.py3-none-any.whl (90 kB)
---------------------------------------- 90.6/90.6 kB 1.7 MB/s eta 0:00:00
Installing collected packages: pyserial
Successfully installed pyserial-3.5"Mond szépen angolul: Gyors róka!"
-
Hege1234
addikt
válasz sztanozs #4036 üzenetére
igen sry, hogy nem fejtettem ki korábban
import requests
import re
headers1 = {
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'Connection': 'keep-alive',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36',
}
response1 = requests.get('https://devstreaming-cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_fmp4/master.m3u8', headers=headers1).text
grab_Connection = headers1['Connection']
grab_User_Agent = headers1['User-Agent']
print(grab_Connection)
#keep-alive
print(grab_User_Agent)
#Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36a headers1-et ki tudom olvasni, hogy mi van benne mint pl a user-agent-et
de a response1 már csak a text-et adja vissza és a https linket ami statikusan meg van adva azt már nemtext_from_response1 = re.findall(r'BANDWIDTH=.*RESOLUTION=1920x1080.*[^?](.*)', response1)[0].strip()
print(text_from_response1)
#v9/prog_index.m3u8a scriptet folytatva mivel így meglett a
v9/prog_index.m3u8
most kelle elérnem valahogy ebből a https linket-et egy string-beresponse1 = requests.get('https://devstreaming-cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_fmp4/master.m3u8', headers=headers1).text
ha az meglenne akkor megkapom ezt egy string-be pl. get_url
https://devstreaming-cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_fmp4/master.m3u8és abból így már a re-vel megkapom a base_url -t
(.*)master.m3u8
base_url+text_from_response1
#https://devstreaming-cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_fmp4/v9/prog_index.m3u8ha nem adok meg text-et a végére akkor megkapom a status-t, de egy olyan megoldást se találtam ami vissza tudná adni a benne megadott linket
response1 = requests.get('https://devstreaming-cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_fmp4/master.m3u8', headers=headers1)
print(response1)
#<Response [200]> -
Hege1234
addikt
válasz sztanozs #4038 üzenetére
amiket linkeltél ott egyik se tér ki arra, hogyan lehetne visszakapni
azt a linket amit a get-be megadtamHasznald a response1.text property-t, ha a visszaadott oldal rendesen formazott.
a text-et jól visszakaptam amiből meg is lett av9/prog_index.m3u8
azzal nincsen problémarequests.get-ből kellene ez a link:
https://devstreaming-cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_fmp4/master.m3u8[ Szerkesztve ]
-
-
Hege1234
addikt
válasz sztanozs #4101 üzenetére
a glob valóban megoldotta
köszi, szuperül működik!if elem['tv_or_radio'] == True:
#tv_or_radio = 'Rádió'
from glob import glob
s_pattern = fr"Downloads\\befejezett\\NAVA\\**\\*id#{elem['clean_id']}*mp3"
file_list = glob(s_pattern, recursive=True)
if file_list:
for file_path in file_list:
print(f'[INFO] ez a fájl már létezik itt: {file_path}')
continue
elif elem['tv_or_radio'] == False:
#tv_or_radio = 'Videó'
from glob import glob
s_pattern = fr"Downloads\\befejezett\\NAVA\\**\\*id#{elem['clean_id']}*mkv"
file_list = glob(s_pattern, recursive=True)
if file_list:
for file_path in file_list:
print(f'[INFO] ez a fájl már létezik itt: {file_path}')
continue -
golfvariant
aktív tag
válasz sztanozs #4125 üzenetére
Írtam egy scriptet, amivel a zöldmanós webáráruház bizonyos termékcsoportjának árát ellenőrizném. Jelezve ha valami nagyobb akció van, mert néha tök jól ki lehet fogni dolgokat
Az oldal javascriptes működése miatt Seleniummal próbáltam megoldani. A script jól működik, de ha pl 20 oldalas a termékpaletta, akkor random eljutok a 5-12. oldalig és onnan valamiért csak első oldalt tölti be, hiába van az url-ben a megfelelő oldalszám.
Próbáltam sleep-el várakoztatni, hogy legyen ideje dolgozni a javascriptes termékbetöltőnek, de sajnos nem ezen múlik. Volt már valaki hasonló cipőben?
Új hozzászólás Aktív témák
- DELL 7070 SFF Core i7 8700 vagy i7 9700 8/16GB DDR4 250GB M.2 SSD számla + gari - több db
- ASRock Challenger D RX 6600 8GB - garancia 2024 november - eladó!
- Bomba ár! Fujitsu LifeBook E756 - i5-6GEN I 8GB I 256GB SSD I 15,6" HD I HDMI I W10 I Garancia!
- Bomba ár! Dell Latitude 7300Touch - i5-8G I 8GB I 256GB SSD I 13,3" FHD Touch I I Cam I W11 I Gari!
- Bomba Ár! HP ProBook 650 G1 - i5-4GEN I 8GB I 128GB SSD I 15,6" FHD I Cam I W10 I Garancia!
Állásajánlatok
Cég: Ozeki Kft.
Város: Debrecen