Új hozzászólás Aktív témák
-
0xmilan
addikt
válasz
alec.cs
#2320
üzenetére
timeout is not a time limit on the entire response download; rather, an exception is raised if the server has not issued a response for timeout seconds (more precisely, if no bytes have been received on the underlying socket for timeout seconds). If no timeout is specified explicitly, requests do not time out.
- https://2.python-requests.org/en/master/user/quickstart/A 0.5 eleg hasrautesszeru volt. Tenyleg lehet akar tobb masodperc is.
@sztanozs
Ja, a legtobb ilyen scanner script HEAD-et hasznal a sebesseg miatt. Azt meg bele lehetne irni, hogy ha a HEAD valasza nem 200, akkor kuldje ujra GET-tel. -
0xmilan
addikt
válasz
Siriusb
#1954
üzenetére
pandas drop_duplicates megoldassal:
Eloszor listabol pandas df: [link]labels = ['name', 'value', 'rowid']
df = pd.DataFrame.from_records(listad, columns=labels)
df.drop_duplicates(subset=['name','rowid'], keep='last', inplace=True)vagy valami hasonlo.
aztan df.tolist() vissza tudja elvileg rakni listaba, vagy to_csv() csv-be, vagy amibe szeretned.
Valoszinuleg van egyszerubb megoldas meg nagy az overheadje a lista > df konverzionak, de hirtelen ez jutott eszembe.
-
0xmilan
addikt
válasz
sztanozs
#1625
üzenetére
Az egyik lynda-s data science tutorialban a 'system python'-tol valo szeparacio volt az indok.
"I do not recommend using your system Python for development in this course, for the following reasons: one disadvantage of using the system Python for real development is that changes to the environment could potentially have an impact on the system for Mac and Linux users, Windows does not use Python for system tasks, and so is unaffected by this issue; another disadvantage is that making changes to the system Python usually requires root, super-user, or administrator level access, which is fine for user's personal desktop, but on shared systems and many corporate computers, it can become a hassle, even installing packages can be a real challenge if users do not have elevated privileges; for Windows users, a final disadvantage of using out-of-the-box Python, is that Windows users often lack compilers and other development tools."
Új hozzászólás Aktív témák
- Nyaralás topik
- VPN topic
- Nem indul és mi a baja a gépemnek topik
- sziku69: Szólánc.
- Luck Dragon: Asszociációs játék. :)
- sziku69: Fűzzük össze a szavakat :)
- Milyen asztali (teljes vagy fél-) gépet vegyek?
- Kodi és kiegészítői magyar nyelvű online tartalmakhoz (Linux, Windows)
- Genshin Impact (PC, PS4, Android, iOS)
- Milyen okostelefont vegyek?
- További aktív témák...
- Gainward 4060Ti Ghost 8GB / 11 Hónap Alza.hu Garancia / Beszámítás OK!
- BONTATLAN Új Ipad 10th , 11th Minden szín 1év hivatalos Apple Garancia AZONNAL ÁTVEHETŐ DEÁK TÉRNÉL.
- BONTATLAN Új Iphone 17 256-512GB Minden Szín 1év APPLE garancia gyári független Deák AZONNAL Átvehet
- BONTATLAN Új iPhone 17 PRO 256-512GGB Független 1év Apple GARANCIA Deák Térnél Azonnal Átvehető.
- Eladó SteelSeries Apex 3 gamer billentyűzet, új!
- BESZÁMÍTÁS! ASUS Z790 i9 14900KF 64GB DDR5 1TB SSD RTX 5080 16GB LIAN LI LANCOOL 216R ADATA 850W
- LG 65C5 - 55" OLED evo - 4K 144Hz - 0.1ms - NVIDIA G-Sync - FreeSync - HDMI 2.1 - A9 Gen8 CPU
- Bomba ár! Dell Latitude 5290 - i5-8GEN I 16GB I 256SSD I 12,5" HD I Cam I W11 I Garancia!
- Óriás! Gamer PC-Számítógép! Csere-Beszámítás! R7 5700 / RTX 3080 / 16GB DDR4 / 512GB SSD!
- Apple iPhone 14 Plus 128GB sárga használt, karcmentes 97% akku 6 hónap garancia
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest
