LoginSignup
0
0

More than 5 years have passed since last update.

Livedoorの自動投稿スクリプト(自分用メモ)

Last updated at Posted at 2019-02-19

Webスクレイピングで投稿するページを見つける

import urllib.request
from bs4 import BeautifulSoup
# URL設定
url = 'https://xxx'
# 読み込み
html = urllib.request.urlopen(url)
# HTMLパース
soup = BeautifulSoup(html, "html.parser")

これでsoupの中にHTMLのデータが存在しますので、.find(タグ)や.get(クラス)などで詳細が取得できます。

最適化する

Livedoorに連携して自動投稿する

リファレンス

Webスクレイピング
NewsAPI
Pandas

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0