Difference between revisions of "Python: URL bermasalah dengan selenium"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 12: | Line 12: | ||
==Kira-Kira Solusi Koding-nya== | ==Kira-Kira Solusi Koding-nya== | ||
+ | |||
+ | result[1] = URL yang di evaluasi | ||
if result[1][:5]!='https': | if result[1][:5]!='https': | ||
if result[1][12:16]!='suara': | if result[1][12:16]!='suara': | ||
f.write(result[1] + '\n') | f.write(result[1] + '\n') |
Latest revision as of 18:18, 26 February 2017
Ada beberapa URL yang bermasalah dengan selenium, misalnya karena certificate https, download CDN network dll, antara lain adalah
- https:// - suka bermasalah
- Iklan pop up - sebaiknya di cancel / di klik manual saat browsing
- Download PDF - sebaiknya klik cancel.
- situs lemot, seperti kemlu.go.id
- intelejen.co.id
- tribunnews
- imdb
- blanja.com
Kira-Kira Solusi Koding-nya
result[1] = URL yang di evaluasi
if result[1][:5]!='https': if result[1][12:16]!='suara': f.write(result[1] + '\n')