UJP - screenshotmachineを使う

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

  • カテゴリ ハウツー の最新配信
  • RSS
  • RDF
  • ATOM

ブログ - screenshotmachineを使う

screenshotmachineを使う

カテゴリ : 
ハウツー
ブロガー : 
ujpblog 2022/1/21 22:24
 スクリーンショットを撮ってくれるWebサービスが.

Screenshotmachine
https://www.screenshotmachine.com

 無料でアカウントを作成でき,PythonでAPIを叩くとPNG形式でスクリーンショットが保存されます.

 どういった利用用途かを考えてみる.

  • インターネット側からどの様に見えているか確認できる
  • 魚拓の取得
  • ちょっと危ない(サスピシャスな)サイトにアクセスしてみた時にどうなるかサンドボックス的に使う

     当然インターネットでアクセスできるサイトだけになるけれど,LAN内のサイトだったら,「PhantomJSでスクリーンショット」を使えば良いかな.

     無料ユーザ登録した後は,APIキーを取得して,URLやキャプチャのサイズを設定すれば良いです.


    https://github.com/screenshotmachine/screenshotmachine-python

     githubのコードのサンプル.
    customer_key = 'PUT_YOUR_CUSTOMER_KEY_HERE'
    secret_phrase = '' # leave secret phrase empty, if not needed
    options = {
      'url': 'https://www.google.com', # mandatory parameter
      # all next parameters are optional, see our website screenshot API guide for more details
      'dimension': '1366x768', # or "1366xfull" for full length screenshot
      'device': 'desktop',
      'cacheLimit' : '0',
      'delay' : '200',
    import urllib.request
      'zoom' : '100'
      }
    
  • トラックバック


    広告スペース
    Google