ライフイズビューティフル

訪問記/書評/勉強日記(TOEIC930/IELTS6.0/HSK5級/Python)

Youtube review Amity Sensei

出張や旅行に行っており家に居ないとすっかり色々と怠けてしまうのでどうにか良いシステムを構築して移動先でも効率の良いアウトプットの記録をしたいと思う日々。

今回は久しぶりにYoutube reviewです。

Amity SenseiというiPadの使い方の先生なんですが、いつも非常にクリエイティブな内容で参考になっています。

www.youtube.com

 

 

おすすめのYoutuber

1. Peter McKinnon

f:id:ohtanao21:20190818201334p:plain

www.youtube.com

2. Sara Dietschy

f:id:ohtanao21:20190818202050p:plain

3. Daniel Schiffer

f:id:ohtanao21:20190818201151p:plain

www.youtube.com

 

4. PiXimperfect

f:id:ohtanao21:20190818201537p:plain

www.youtube.com

5. People are Awesome 

f:id:ohtanao21:20190818201752p:plain

www.youtube.com

6. のりごとー

f:id:ohtanao21:20190818202152p:plain

www.youtube.com

7. Okawa Yusuke

f:id:ohtanao21:20190818202322p:plain

www.youtube.com

 

おすすめの本に挙げられていた二冊

あるあるデザイン

あるあるデザイン

 
けっきょく、よはく。余白を活かしたデザインレイアウトの本

けっきょく、よはく。余白を活かしたデザインレイアウトの本

 

 

 Amity Senseiについて

www.instagram.com

amitygraphic.com

 

ブログを見ると経歴があり、海外の大学出身みたいで、昔から興味深いなあと思う人はかなりの率で海外生活経験があるというのが面白かった。休日になにか制作できる恋人良いなと言ってるところやiPadでラブレター書いてほしいと言っているあたりツボだった。

どんどん若くて魅力的な方が出てくるので柔軟性を持って歳を重ね、新しいことに対してオープンに生きたいと思う。

Python プログラミング記録#6 デベロッパーツール

 本日も引き続き少しずつ勉強。

f:id:ohtanao21:20190719002928p:plain

  • Networkタブは通信に関わる内容の表示がされる

f:id:ohtanao21:20190719002924p:plain

  • Disable casheをオンにするとChromeは毎回リクエストを実行する

f:id:ohtanao21:20190719002933p:plain

f:id:ohtanao21:20190719005240p:plain

まとめ:id と class の違いと使い分け方の基本

  • id と classの最大の違いは、ひとつのページで使える回数とひとつの要素に付与できる数。
  • id は一意のもので、ひとつのページ上に同じidは複数使えない。また、ひとつの要素にidはひとつしかつけられない。
  • classの使用数に制限はない。同じページ上に複数回使われても大丈夫。また、ひとつの要素に複数つけることも可能。
  • idは一意的の目印にするだけ、CSSによるデザイン設定はclass、などと使い分けると管理・メンテナンスが楽でオススメ。

jill-tone.com

Jupyter notebookでレスポンスを見ながら少し書いてみた

import requests
from bs4 import BeautifulSoup

#'対象URL'
url = 'https://en.wikipedia.org/wiki/List_of_Game_of_Thrones_episodes'

#HTMLの取得
r = requests.get(url)
html_contents = r.text

#html.parser、lxml、html5libのどれか明記すると良い
html_soup = BeautifulSoup(html_contents, 'html.parser')
html_soup.text
#最初のh1タグのみ取得
print(html_soup.find('h1'))
#結果 <h1 class="firstHeading" id="firstHeading" lang="en">List of <i>Game of Thrones</i> episodes</h1>

#最初のPタグのみ取得
print(html_soup.find('p').text)
#結果 Game of Thrones is an American fantasy drama television series created by David Benioff and D. B. Weiss. The series is based on George R. R. Martin's series of fantasy novels, A Song of Ice and Fire. The series takes place on the fictional continents of Westeros and Essos, and chronicles the power struggles among noble families as they fight for control of the Iron Throne of the Seven Kingdoms. The series starts when House Stark, led by Lord Eddard "Ned" Stark (Sean Bean), is drawn into schemes surrounding King Robert Baratheon (Mark Addy).[1]


#すべてのpタグを取得
for p in html_soup.find_all('p'):
    print(p.text)
#結果 Game of Thrones is an American fantasy drama television series created by David Benioff and D. B. Weiss. The series is based on George R. R. Martin's series of fantasy novels, A Song of Ice and Fire. The series takes place on the fictional continents of Westeros and Essos, and chronicles the power struggles among noble families as they fight for control of the Iron Throne of the Seven Kingdoms. The series starts when House Stark, led by Lord Eddard "Ned" Stark (Sean Bean), is drawn into schemes surrounding King Robert Baratheon (Mark Addy).[1](途中略)The series premiered on April 17, 2011, on HBO. David Benioff and D. B. Weiss 
For the eighth season, see "Game of Thrones: Season Eight Ratings". TV Series Finale. April 16, 2019. Retrieved April 16, 2019.
  • 本の内容のほとんどがGithubに載っている 

セールだった本が倍の値段になっているのを見るとKindleはセール時に買う一択だと思った。

Pythonスクレイピングの基本と実践 データサイエンティストのためのWebデータ収集術 impress top gearシリーズ

Pythonスクレイピングの基本と実践 データサイエンティストのためのWebデータ収集術 impress top gearシリーズ

 
  • Beautiful Soupについてバリエーションを覚えておくと良さそう

python.civic-apps.com

qiita.com

www.crummy.com

 

参考)

psn.hatenablog.jp