0
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

posted at

updated at

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

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

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
0
Help us understand the problem. What are the problem?