Soumettre la recherche
Mettre en ligne
Don't scrape, Glean!
•
Télécharger en tant que PPT, PDF
•
1 j'aime
•
742 vues
tommorris
Suivre
Lacks the demo part, alas, but it's the slides I used
Lire moins
Lire la suite
Technologie
Signaler
Partager
Signaler
Partager
1 sur 35
Télécharger maintenant
Recommandé
CSS naming | ceci n'est pas un pipe
CSS naming | ceci n'est pas un pipe
Wilfred Nas
2310 b xd
2310 b xd
Krazy Koder
Responsive Typography II
Responsive Typography II
Clarissa Peterson
My First Rails Plugin - Usertext
My First Rails Plugin - Usertext
frankieroberto
basic knowledge abot html
basic knowledge abot html
Ankit Dubey
zigbee
zigbee
mahamad juber
SAP NetWeaver Gateway - Gateway Service Consumption
SAP NetWeaver Gateway - Gateway Service Consumption
SAP PartnerEdge program for Application Development
NetWeaver Gateway- Gateway Service Consumption
NetWeaver Gateway- Gateway Service Consumption
SAP PartnerEdge program for Application Development
Recommandé
CSS naming | ceci n'est pas un pipe
CSS naming | ceci n'est pas un pipe
Wilfred Nas
2310 b xd
2310 b xd
Krazy Koder
Responsive Typography II
Responsive Typography II
Clarissa Peterson
My First Rails Plugin - Usertext
My First Rails Plugin - Usertext
frankieroberto
basic knowledge abot html
basic knowledge abot html
Ankit Dubey
zigbee
zigbee
mahamad juber
SAP NetWeaver Gateway - Gateway Service Consumption
SAP NetWeaver Gateway - Gateway Service Consumption
SAP PartnerEdge program for Application Development
NetWeaver Gateway- Gateway Service Consumption
NetWeaver Gateway- Gateway Service Consumption
SAP PartnerEdge program for Application Development
XML and Web Services with PHP5 and PEAR
XML and Web Services with PHP5 and PEAR
Stephan Schmidt
Ods Markup And Tagsets: A Tutorial
Ods Markup And Tagsets: A Tutorial
simienc
lf-2003_01-0269
lf-2003_01-0269
tutorialsruby
lf-2003_01-0269
lf-2003_01-0269
tutorialsruby
Csphtp1 18
Csphtp1 18
HUST
Douglas Crockford Presentation Jsonsaga
Douglas Crockford Presentation Jsonsaga
Ajax Experience 2009
Jsonsaga
Jsonsaga
nohmad
The JSON Saga
The JSON Saga
kaven yan
XML processing with perl
XML processing with perl
Joe Jiang
Grails Introduction - IJTC 2007
Grails Introduction - IJTC 2007
Guillaume Laforge
Lecture 3 - Comm Lab: Web @ ITP
Lecture 3 - Comm Lab: Web @ ITP
yucefmerhi
Grails and Dojo
Grails and Dojo
Sven Haiges
A Toda Maquina Con Ruby on Rails
A Toda Maquina Con Ruby on Rails
Rafael García
How Xslate Works
How Xslate Works
Goro Fuji
Debugging and Error handling
Debugging and Error handling
Suite Solutions
Система рендеринга в Magento
Система рендеринга в Magento
Magecom Ukraine
WordPress Development Confoo 2010
WordPress Development Confoo 2010
Brendan Sera-Shriar
Lecture 5 - Comm Lab: Web @ ITP
Lecture 5 - Comm Lab: Web @ ITP
yucefmerhi
JavaScript
JavaScript
Doncho Minkov
Orm hero
Orm hero
Simone Di Maulo
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
Hyundai Motor Group
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Delhi Call girls
Contenu connexe
Similaire à Don't scrape, Glean!
XML and Web Services with PHP5 and PEAR
XML and Web Services with PHP5 and PEAR
Stephan Schmidt
Ods Markup And Tagsets: A Tutorial
Ods Markup And Tagsets: A Tutorial
simienc
lf-2003_01-0269
lf-2003_01-0269
tutorialsruby
lf-2003_01-0269
lf-2003_01-0269
tutorialsruby
Csphtp1 18
Csphtp1 18
HUST
Douglas Crockford Presentation Jsonsaga
Douglas Crockford Presentation Jsonsaga
Ajax Experience 2009
Jsonsaga
Jsonsaga
nohmad
The JSON Saga
The JSON Saga
kaven yan
XML processing with perl
XML processing with perl
Joe Jiang
Grails Introduction - IJTC 2007
Grails Introduction - IJTC 2007
Guillaume Laforge
Lecture 3 - Comm Lab: Web @ ITP
Lecture 3 - Comm Lab: Web @ ITP
yucefmerhi
Grails and Dojo
Grails and Dojo
Sven Haiges
A Toda Maquina Con Ruby on Rails
A Toda Maquina Con Ruby on Rails
Rafael García
How Xslate Works
How Xslate Works
Goro Fuji
Debugging and Error handling
Debugging and Error handling
Suite Solutions
Система рендеринга в Magento
Система рендеринга в Magento
Magecom Ukraine
WordPress Development Confoo 2010
WordPress Development Confoo 2010
Brendan Sera-Shriar
Lecture 5 - Comm Lab: Web @ ITP
Lecture 5 - Comm Lab: Web @ ITP
yucefmerhi
JavaScript
JavaScript
Doncho Minkov
Orm hero
Orm hero
Simone Di Maulo
Similaire à Don't scrape, Glean!
(20)
XML and Web Services with PHP5 and PEAR
XML and Web Services with PHP5 and PEAR
Ods Markup And Tagsets: A Tutorial
Ods Markup And Tagsets: A Tutorial
lf-2003_01-0269
lf-2003_01-0269
lf-2003_01-0269
lf-2003_01-0269
Csphtp1 18
Csphtp1 18
Douglas Crockford Presentation Jsonsaga
Douglas Crockford Presentation Jsonsaga
Jsonsaga
Jsonsaga
The JSON Saga
The JSON Saga
XML processing with perl
XML processing with perl
Grails Introduction - IJTC 2007
Grails Introduction - IJTC 2007
Lecture 3 - Comm Lab: Web @ ITP
Lecture 3 - Comm Lab: Web @ ITP
Grails and Dojo
Grails and Dojo
A Toda Maquina Con Ruby on Rails
A Toda Maquina Con Ruby on Rails
How Xslate Works
How Xslate Works
Debugging and Error handling
Debugging and Error handling
Система рендеринга в Magento
Система рендеринга в Magento
WordPress Development Confoo 2010
WordPress Development Confoo 2010
Lecture 5 - Comm Lab: Web @ ITP
Lecture 5 - Comm Lab: Web @ ITP
JavaScript
JavaScript
Orm hero
Orm hero
Dernier
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
Hyundai Motor Group
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Delhi Call girls
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
HostedbyConfluent
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
Malak Abu Hammad
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
Deakin University
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
naman860154
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
ThousandEyes
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
naman860154
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Hyundai Motor Group
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
Allon Mureinik
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
Michael W. Hawkins
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
Mark Billinghurst
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
Memoori
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Patryk Bandurski
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Delhi Call girls
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
null - The Open Security Community
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
XfilesPro
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
soniya singh
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
carlostorres15106
Dernier
(20)
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Don't scrape, Glean!
1.
2.
Scraping sucks.
3.
def lastlogin
(@hmodel/ "//td[@class='text'][@width='193']" ).first.innerHTML.split("<br />"[ 9 ].strip[ -10 .. -1 ] return date[ -4 .. -1 ] + "-" + date[ -7 .. -6 ] + "-" + date[ -10 .. -9 ] end end end end
4.
Hpricot for ‘Last
login’ date on MySpace.
5.
try :
lastlogin = self.soup.findAll( True , { "width" : "193" })[ 0 ].br.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.string loginregex = re.compile( r " [0-9] / [0-9] +/ [0-9]* ") loginregex_inst = loginregex.search(lastlogin) if loginregex_inst is not None : self.lastlogin = loginregex_inst.group() except : pass pass pass pass pass pass pass pass
6.
Taken from a
Python/BeautifulSoup library.
7.
(The Ruby is
prettier, but who’s counting?)
8.
getElementsByClassName(“foo”)[0].children
9.
It’s an edge
case. MySpace’s HTML is worse than average.
10.
But it is
an ugly recipe for mental turmoil.
11.
The alternative?
12.
flickr.getPhotos()
13.
And you get
back nice XML or JSON (or even SOAP!) (or even SOAP!)
14.
But ‘D.R.Y.’! APIs
break that principle. APIs break that principle.
15.
This is the
data equivalent of the ‘accessible version’.
16.
Enter GRDDL.
17.
GRDDL defines a
transformation process for XHTML » RDF.
18.
XHTML ? That’s
what the spec says. That’s what the spec says.
19.
HTML 4 works
too. Tidy ! !
20.
RDF? Yes. Trust
me. It’s not evil. It’s not evil. It’s not evil.
21.
GRDDL can work
like a data stylesheet on top of your HTML. on top of your HTML. on top of your HTML.
22.
You simply use
HTML (or XML) in the normal way...
23.
...and define how
the data transformation.
24.
You can even
use it as a bridge for exisiting APIs and services.
25.
Could even be
used for other formats than RDF. Atom? than RDF. Atom? than RDF. Atom?
26.
Simple example: ‘Not
Safe For Work’ ‘Not Safe For Work’
27.
<a href=" http://tubgirl.com
" class="nsfw">
28.
I can write
that. I can’t write xFolk by hand. I can’t write xFolk by hand.
29.
Is ‘nsfw’ a
good class name? No.
30.
Do I care?
No.
31.
The data layer
becomes separated like CSS is from HTML.
32.
That’s the theory.
Now for the demo. Now for the demo.
33.
irc.freenode.net #swig #swhack
#swhack #swhack
34.
getsemantic.com [email_address] [email_address]
35.
[email_address] http://tommorris.org http://tommorris.org
Télécharger maintenant