Difference between revisions of "Python: URL bermasalah dengan selenium"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
* Iklan pop up - sebaiknya di cancel / di klik manual saat browsing | * Iklan pop up - sebaiknya di cancel / di klik manual saat browsing | ||
* Download PDF - sebaiknya klik cancel. | * Download PDF - sebaiknya klik cancel. | ||
+ | * situs lemot, seperti kemlu.go.id | ||
* intelejen.co.id | * intelejen.co.id | ||
* tribunnews | * tribunnews | ||
* imdb | * imdb | ||
* blanja.com | * 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') |
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')