Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Scrape with requests and BeautifulSoup
Search
Ricardo Portela
March 07, 2017
Technology
53
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Scrape with requests and BeautifulSoup
Ricardo Portela
March 07, 2017
Other Decks in Technology
See All in Technology
古い指輪から広がった JAVA コミュニティ とのつながり
yamad
0
100
AI駆動で「他アプリの音を加工できる」アプリを作った
satomasahiro2005
0
150
コンテナ運用におけるネットワーク・コンテナコストの削減方法/How to Reduce Network and Container Costs in Container Operations
masakiokuda
1
200
OptunaHub: ブラックボックス最適化のためのプラットフォーム
pfn
PRO
0
140
Claude の新機能を、 出た日に触って社内に届けるまで
rfdnxbro
1
180
Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
1
580
Refining Active Record
shugo
0
160
AI時代のPRレビューにどう向き合うか?
kairim0
1
240
20261017福岡devIO 「AIは"良いダッシュボード"を作れるか?
jtakeda
0
150
USB PDを使ってスマホを労わりたい
raspython3
0
180
二歩目のフロントエンド・ウェブアクセシビリティ
camiha
2
620
Persisting Massive Data with Rails ~Designing for 60 billion rows, and fighting the bottlenecks~ Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
0
730
Featured
See All Featured
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.7k
Deep Space Network (abreviated)
tonyrice
0
370
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2k
How to make the Groovebox
asonas
2
2.5k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.6k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
My Coaching Mixtape
mlcsv
0
360
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
360
Speed Design
sergeychernyshev
33
2.2k
Odyssey Design
rkendrick25
PRO
2
870
Transcript
I see dead people Scrape html pages
quem sou eu? Analista Desenvolvedor Python e especialista em Mainframe(15
anos). Atualmente trabalho na IBM no time de DST - Suporte ao desenvolvimento
[email protected]
twitter - ricaportelas 15 981444871
None
Legal ou ilegal existem discussões a respeito de raspagem de
dados. Os dados estão lá site, se não houver nada especificando nos termos de uso do site. Você até pode fazer data scraping. Um site que começou com isso foi o Buscapé
scrape html pages O que é scrape? o que é
web crawling? - Scrapy (framework)
Tips / Issues - muitas requisições ao servidor podem até
a derrubar o servidor (ética) - faça uma cópia local da html - a html pode estar mal formatada (maioria das vezes), você terá um certo trabalho
Beautiful soup - biblioteca Python que fornece métodos simples para
navegar, procurar e até modificar parse tree - não é necessário se preocupar com Encoding - ele faz o parse de lxml e html5
Hands-on exemplo prático de um Scrape com Beatiful Soup
Duvidas?
None