ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[­ì³Ð] python¤W¥«Âd¤T¤jªk¤H¶R½æ¶W¤é³ø¸ê®Æ¤U¸ü

¦^´_ 163# zyzzyva
¦UºØª¬ªp§Ú³£¤@¤@´ú¸Õ¹L¡A³Ì«á¤S¦^¨ì
¦w¸Ë Anaconda2-4.0.0-Windows-x86_64 ª©¥»¡A
¯u¤£ª¾¯u¥¿­ì¦]¦b­þ¸Ì (ºô¸ô¤W¬Û¦P´£°Ý§¡µL¸Ñ)¡C

TOP

¦^´_ 162# c_c_lai
¦³¸Õ¹L°õ¦æjupyter notebook --debug¶Ü¡H¦³¨S¦³¤ñ¸û¸Ô²Óªº¸ê°T¡H

TOP

¦^´_ 160# zyzzyva
¦p¹Ï¥Ü¡G

TOP

¦^´_ 160# zyzzyva
¥Ø«e§Ú¤w¦w¸Ë¤F Anaconda2-4.0.0-Windows-x86_64¡A
¥¿¦b´ú¸Õ¤¤¡A¬Ý°_¨Ó¦n¹³ÆZ¥¿±`ªº (Available Kernels )¡C¦pªG¤@¤Á OK¡A
¦^ÀY±N¥¦²¾°£¦A¦w¸Ë Anaconda3-4.2.0-Windows-x86_64 ´ú¸Õ¬Ý¡C

TOP

¦^´_ 159# c_c_lai
¦bcmd©³¤U°õ¦æjupyter kernelspec list¦³¦^À³¶Ü¡H

TOP

¦^´_ 158# zyzzyva
¶i¤J Anaconda Navigator «á¡A¿ï®× Jupyter Notebook
¥u­n¶i¤J·s®×©Î®סA¥k¤W¨¤ÀH§Y¥X²{¦¹°T®§¡A³Ì«á¥¦·|
Åã¥Ü "No Kernel"¡C
§Ú¤Wºô¬dµ²ªG¤@¤j¥d¨®ªº¬Û¦P´£°Ý¡C
§Ú²{¦b¤@¤@ªº©¹«e¦w¸Ë³v¤@ª©¥»¦A¸Õ¸Õ¡A
¤w½T©w Anaconda3-4.1.1-Windows (§t) ¥H¤W§¡¤£¦æ¡C

TOP

¦^´_ 157# c_c_lai
±z¬O°õ¦æ¤°»ò¯S©w«ü¥Oªº®É­Ô·|·í±¼ÁÙ¬O¤@¶}´N·í±¼¡H
¦³§ó·s©Î¦w¸Ë·sªºÀô¹Ò©Î®M¥ó¶Ü¡H¦³¨S¦³¨ä¥Lªº¿ù»~°T®§¡H

TOP

¦^´_ 155# zyzzyva
½Ð±Ð¤j¤j
¬°¦ó³Ìªñ§Úªº Anaconda 3.5 ¤£Â_·|¥X²{
"The kernel has died, and the automatic restart has failed"
ÁÂÁ¡I

TOP

¥»©«³Ì«á¥Ñ koshi0413 ©ó 2016-9-21 10:09 ½s¿è
¦^´_  koshi0413
¤£¿ùªº¤å³¹¡AÁÂÁ¤À¨É¡C
¤j¶qª¦¨úªº®É­Ô¥[¶i¤@¨Çsleep«Ü¦n¡AÁקKµu®É¶¡¤j¶qrequest³y¦¨ ...
zyzzyva µoªí©ó 2016-9-21 09:34


°ÊºAajaxºô­¶  ¥Ø«e¬O¥Î selenium+chrome¸Ñ¨M
¥u¬O³æ¯Â·Q¥Î requests¡ABeautifulSoup ¥æ¤¬ÅTÀ³ ªº¤è¦¡¨Ó¸Ñ
¥Ø«e¸Ñ¤£±¼@@
¬ÛÃöª¾ÃÑÁÙ¤£°÷¡A¤Ö¤@­Óheaders°Ñ¼Æ ³£¬OÅܤƦ¡¶Ã½X¡AÁÙ¦b«ä¦Ò¤¤

ps:¦³¬d¤F¤@¤U¡A¦n¹³­n¥Î cookie µM«á¦b§ì¨ú ¥t¥~¤G°Ñ¼Æªº¶Ã¼Æ½X¡]¥Ø«e§ì¨ì¤@­Ó¡A¥tÁÙ¤@Á٧䤣¨ì³W«ß¡^
¤£¹L¤p§Ì¦Û¤v¤]¤£½T©w°Õ
requests.session() ¦n¦h¦¸ÁÙ¬O¨S¤ÏÀ³¡A«¢«¢

TOP

¦^´_ 154# koshi0413
¤£¿ùªº¤å³¹¡AÁÂÁ¤À¨É¡C
¤j¶qª¦¨úªº®É­Ô¥[¶i¤@¨Çsleep«Ü¦n¡AÁקKµu®É¶¡¤j¶qrequest³y¦¨ºô¯¸¹L¤jªº­t¾á¡C
selenium+phantomJSªº²Õ¦X¥i¥HÁô§ÎÂsÄý¾¹¡A¤£¹L¦pªG¤£¤¶·N¡A¥Îfirefox©Îchrome¤]¥i¥H¡C

TOP

        ÀR«ä¦Û¦b : ¥@¤W¦³¨â¥ó¨Æ¤£¯àµ¥¡G¤@¡B§µ¶¶ ¤G¡B¦æµ½¡C
ªð¦^¦Cªí ¤W¤@¥DÃD