[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 ./* 


参考

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)