Python: URL bermasalah dengan selenium

From OnnoWiki
Revision as of 18:18, 26 February 2017 by Onnowpurbo (talk | contribs) (→‎Kira-Kira Solusi Koding-nya)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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')