[Note] AWS Lambda / Twitter API / Python

[Note] AWS Lambda / Twitter API / Python:


実行環境


外部モジュールの準備


パッケージディレクトリを作成する

$ mkdir PROJECT 


必要なモジュールをインストールする

$ pip install requests -t ./ 
$ pip install feedparser -t ./ 
$ pip install requests_oauthlib -t ./ 


モジュールの依存関係を確認する


pipdeptree をインストールする

$ pip install pipdeptree 


インストールするモジュールの依存関係を確認する

$ pipdeptree -p requests 
requests==2.13.0 
  - urllib3 [required: ==1.20, installed: 1.20] 
$ pipdeptree -p feedparser 
feedparser==5.2.1 
$ pipdeptree -p requests_oauthlib 


zip化する

$ zip -r PROJECT.zip ./* 


参考

コメント

このブログの人気の投稿

投稿時間:2020-07-01 05:34:30 RSSフィード2020-07-01 05:00 分まとめ(37件)

投稿時間:2020-07-01 20:43:40 RSSフィード2020-07-01 20:00 分まとめ(81件)

投稿時間:2020-07-01 08:33:22 RSSフィード2020-07-01 08:00 分まとめ(49件)