SlideShare ist ein Scribd-Unternehmen logo
1 von 17
Downloaden Sie, um offline zu lesen
CHAPTER 07
(Part 1)
PROTOTYPING ONLINE
COMPONENTS
IoT TY BSc.IT notes by Ms.Blety Alengadan
CHAPTER 07
(Part 1)
PROTOTYPING ONLINE
COMPONENTS
IoT TY BSc.IT notes by Ms.Blety Alengadan
Topics Covered:
 Getting Started with an API
 Mashing up APIs
 Scraping
 Legalities
Things should be “first class citizens” of the Internet, they do seem to be currently tied to
particular websites or services.
There is a good reason for this: unlike a general-purpose device, such as a computer,
tablet, or phone, the physical object is designed for a purpose and doesn’t necessarily
have a keyboard and screen to let it easily change its configuration.
In Chapter 2, “Design Principles for Connected Devices”, how Internet of Things
devices are “magical” objects: a physical thing with an embedded controller and sensors
that allow it to do clever things that a merely solid or mechanical object couldn’t.
Even with just these two components, you can already see some magical objects, such
as air fresheners that pump fragrance into the room only when they sense that someone
has walked past.
IoT TY BSc.IT notes by Ms.Blety Alengadan
In the near future, devices will most likely use standardized protocols to speak to each
other and to other apps and computers on your local or personal network.
For now, though, in most of the examples we look at, each device is tied to a single web
service.
For a personal project, creating a service may not be important, but if you’re developing
a product to sell, you will want to be in control of the service—otherwise, you may have
to recall every device to reprogram any time it is discontinued, changes terms and
conditions, making your use of it abusive, or changes its API, making your code stop
working.
In fact, even Bubblino runs via a service at http://bubblino.com which allows users to
customise their Bubblino to search for particular words and gives Adrian the flexibility
to route all the Bubblino to a different service or API if anything changes.
IoT TY BSc.IT notes by Ms.Blety Alengadan
GETTING STARTED WITH AN API
The most important part of a web service, with regards to an Internet of Things device, is
the Application Programming Interface, or API.
An API is a way of accessing a service that is targeted at machines rather than people.
If you think about your experience of accessing an Internet service, you might follow a
number of steps. For example, to look at a friend’s photo on Flickr, you might do the
following:
 Launch Chrome, Safari, or Internet Explorer.
 Search for the Flickr website in Google and click
on the link.
 Type in your username and password and click
“Login”.
 Look at the page and click on the “Contacts”
link.
 Click on a few more links to page through the list
of contacts till you seethe one you want.
 Scroll down the page, looking for the photo you
want, and then click on it.
IoT TY BSc.IT notes by Ms.Blety Alengadan
GETTING STARTED WITH AN API
Although these actions are simple for a human, they involve a lot of looking, thinking,
typing, and clicking. A computer can’t look and think in the same way.
The tricky and lengthy process of following a sequence of actions and responding to
each page is likely to fail the moment that Flickr slightly changes its user interface.
For example, if Flickr rewords “Login” to “Sign in”, or “Contacts” to “Friends”, a
human being would very likely not even notice, but a typical computer program would
completely fail.
Instead, a computer can very happily call defined commands such as login or get
picture #142857 .
IoT TY BSc.IT notes by Ms.Blety Alengadan
MASHING UP APIs
Perhaps the data you want is already available on the Internet but in a form that doesn’t
work for you? The idea of “mashing up” multiple APIs to get a result has taken off and
can be used to powerful effect.
For example:
Using a mapping API to plot properties to rent or buy—for example, Google Maps to
visualise properties to rent via Craigslist, or Foxtons in London showing its properties
using Mapumental.
IoT TY BSc.IT notes by Ms.Blety Alengadan
MASHING UP APIs
The leading London estate agent Foxtons has become the first property player to use
Mapumental maps on its website.
Mapumental is a web-based application for displaying journeys in terms of how long
they take,rather than by distance.
IoT TY BSc.IT notes by Ms.Blety Alengadan
MASHING UP APIs
Fetching Flickr images that are related to the top headlines retrieved from The Guardian
newspaper’s API.
IoT TY BSc.IT notes by Ms.Blety Alengadan
MASHING UP APIs
Showing Twitter trends on a global map or in a timeline or a charting API.
IoT TY BSc.IT notes by Ms.Blety Alengadan
SCRAPING
Screen scraping is the process of
collecting screen display data from one
application and translating it so that
another application can display it
In many cases, companies or
institutions have access to fantastic
data but don’t want to or don’t have
the resources or knowledge to make
them available as an API. In such
cases we use screen scraping.
IoT TY BSc.IT notes by Ms.Blety Alengadan
SCRAPING
Adrian has scraped the Ship AIS system ( www.shipais.com/ , whose data is semi-
manually plotted by shipping enthusiasts) to get data about ships on the river Mersey,
and this information is then tweeted by the @merseyshipping .He says this project is a
way to “connect the river to the Internet”, so although this doesn’t have an Internet-
connected “thing” as such, it arguably enters into the realm of the Internet of Things.
IoT TY BSc.IT notes by Ms.Blety Alengadan
Adrian is the author of the book
’Designing the Internet of Things’
Clicked on Berwick, to get information about ships and ports near to that area.
IoT TY BSc.IT notes by Ms.Blety Alengadan
SCRAPING
The Public Whip website ( www.publicwhip.org.uk/ ) is made possible by using a
scraper to read the Hansard transcripts of UK government sessions (released as Word
documents). With the resultant data, it can produce both human- and machine-readable
feeds of how our elected representatives vote.
Only for Understanding:
Hansard is the traditional name of
the transcripts of Parliamentary
Debates in Britain and many
Commonwealth countries. It is
named after Thomas Curson
Hansard (1776–1833), a London
printer and publisher, who was the
first official printer to the parliament
at Westminster.
The website "Public Whip" is a
good way of seeing how each MP
has voted:
http://www.publicwhip.org.uk
IoT TY BSc.IT notes by Ms.Blety Alengadan
SCRAPING : www.publicwhip.org.uk
IoT TY BSc.IT notes by Ms.Blety Alengadan
SCRAPING
The ScraperWiki site ( https://scraperwiki.com ) has an excellent platform for
writing scrapers, in a number of dynamic programming languages, which collate
data into database tables.
Effectively, it provides infrastructure for “Mechanize” scripts (scripts for navigating
between web pages) that you could run on your own computer or server but allows
you to outsource the boring, repetitive parts to ScraperWiki.
Their CEO, Francis Irving, used this for an Internet of Things project of his own.
He scrapes the Liverpool council website page to find out when his recycling bin is
due to be collected.
His Binduino device ( https://github.com/frabcus/binduino ), an Arduino plus
custom electronics, checks the result regularly and illuminates some
electroluminescent wire to make his recycling bin glow when he needs to take it
out.
IoT TY BSc.IT notes by Ms.Blety Alengadan
LEGALITIES
Screen scraping (otherwise known as web scraping, data scraping, or web
harvesting) is the action of using a software program or application to copy and
extract data from a website to make use of it for another purpose. Depending on the
circumstances, screen scraping presents a range of possible legal risks
Screen-scraping may break the terms and conditions of a website. For example,
Google doesn’t allow you to screen-scrape its search pages but does provide an
API. Even if you don’t think about legal sanctions, breaking the terms and
conditions for a company like Google might lead to its denying you its other
services.
Other data is protected by copyright or, for example, database rights.
Scraping is not in itself illegal in the UK, but the data may be subject to copyright.
Using it without the copyright owner's permission, especially if you are selling it,
could lead to legal action.
"Web scraping," also called crawling or spidering, is the automated gathering of
data from someone else's website. Although scraping is ubiquitous, it's not clearly
legal. A variety of laws may apply to unauthorized scraping, including contract,
copyright issues.
IoT TY BSc.IT notes by Ms.Blety Alengadan

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Prototyping Embedded Devices_Internet of Things
Prototyping Embedded Devices_Internet of ThingsPrototyping Embedded Devices_Internet of Things
Prototyping Embedded Devices_Internet of Things
 
Thinking About Prototyping_Internet of Things
Thinking About Prototyping_Internet of Things Thinking About Prototyping_Internet of Things
Thinking About Prototyping_Internet of Things
 
Internet of Things, TYBSC IT, Semester 5, Unit II
Internet of Things, TYBSC IT, Semester 5, Unit IIInternet of Things, TYBSC IT, Semester 5, Unit II
Internet of Things, TYBSC IT, Semester 5, Unit II
 
IOT - Design Principles of Connected Devices
IOT - Design Principles of Connected DevicesIOT - Design Principles of Connected Devices
IOT - Design Principles of Connected Devices
 
I twin technology
I twin technologyI twin technology
I twin technology
 
Calm technology
Calm technologyCalm technology
Calm technology
 
IOT PROTOCOLS.pptx
IOT PROTOCOLS.pptxIOT PROTOCOLS.pptx
IOT PROTOCOLS.pptx
 
chatgpt seminar ppt.pptx
chatgpt seminar ppt.pptxchatgpt seminar ppt.pptx
chatgpt seminar ppt.pptx
 
Seminar ppt fog comp
Seminar ppt fog compSeminar ppt fog comp
Seminar ppt fog comp
 
Attacks on Mobiles\Cell Phones
Attacks on Mobiles\Cell PhonesAttacks on Mobiles\Cell Phones
Attacks on Mobiles\Cell Phones
 
Internet of things using Raspberry Pi
Internet of things using Raspberry PiInternet of things using Raspberry Pi
Internet of things using Raspberry Pi
 
Iot architecture
Iot architectureIot architecture
Iot architecture
 
Physical Design of IoT.pdf
Physical Design of IoT.pdfPhysical Design of IoT.pdf
Physical Design of IoT.pdf
 
M2M vs IoT: The Key Differences and Similarities
M2M vs IoT: The Key Differences and SimilaritiesM2M vs IoT: The Key Differences and Similarities
M2M vs IoT: The Key Differences and Similarities
 
Internet of things(IoT)
Internet of things(IoT)Internet of things(IoT)
Internet of things(IoT)
 
Internet of Things, TYBSC IT, Semester 5, Unit V
Internet of Things, TYBSC IT, Semester 5, Unit VInternet of Things, TYBSC IT, Semester 5, Unit V
Internet of Things, TYBSC IT, Semester 5, Unit V
 
Fog computing in IoT
Fog computing in IoTFog computing in IoT
Fog computing in IoT
 
Internet of Things (IoT) - Introduction ppt
Internet of Things (IoT) - Introduction ppt Internet of Things (IoT) - Introduction ppt
Internet of Things (IoT) - Introduction ppt
 
Internet of things
Internet of thingsInternet of things
Internet of things
 
Ppt 3 - IOT logic design
Ppt   3 - IOT logic designPpt   3 - IOT logic design
Ppt 3 - IOT logic design
 

Ähnlich wie Prototyping Online Components(Part 01)_Internet of Things

Summarize the What Is Web 2.0
Summarize the What Is Web 2.0Summarize the What Is Web 2.0
Summarize the What Is Web 2.0
wacerone
 
Monitoring Section of IoTs Smart Garbage System
Monitoring Section of IoTs Smart Garbage SystemMonitoring Section of IoTs Smart Garbage System
Monitoring Section of IoTs Smart Garbage System
ijtsrd
 

Ähnlich wie Prototyping Online Components(Part 01)_Internet of Things (20)

6 Insane Challenges of Smart Home App Development & How To Solve Them
6 Insane Challenges of Smart Home App Development & How To Solve Them6 Insane Challenges of Smart Home App Development & How To Solve Them
6 Insane Challenges of Smart Home App Development & How To Solve Them
 
Understanding the Internet of Things (IoT) | Sysfore
Understanding the Internet of Things (IoT) | SysforeUnderstanding the Internet of Things (IoT) | Sysfore
Understanding the Internet of Things (IoT) | Sysfore
 
Butterfly London's A to Z of the Web
Butterfly London's A to Z of the WebButterfly London's A to Z of the Web
Butterfly London's A to Z of the Web
 
Iot chap i
Iot chap iIot chap i
Iot chap i
 
IoT (Internet of Things) by kamrul.net
IoT (Internet of Things)  by kamrul.netIoT (Internet of Things)  by kamrul.net
IoT (Internet of Things) by kamrul.net
 
Tech Update Summary from Blue Mountain Data Systems September 2015
Tech Update Summary from Blue Mountain Data Systems September 2015Tech Update Summary from Blue Mountain Data Systems September 2015
Tech Update Summary from Blue Mountain Data Systems September 2015
 
Enterprise IT and the Internet of Things
Enterprise IT and the Internet of ThingsEnterprise IT and the Internet of Things
Enterprise IT and the Internet of Things
 
Marketplace Innovation Report | Q4, 2015
Marketplace Innovation Report | Q4, 2015Marketplace Innovation Report | Q4, 2015
Marketplace Innovation Report | Q4, 2015
 
Unleashing the Potential of IoT and Android
Unleashing the Potential of IoT and AndroidUnleashing the Potential of IoT and Android
Unleashing the Potential of IoT and Android
 
Iot report
Iot reportIot report
Iot report
 
Internet of things New Version 2017 Document
Internet of things New Version 2017 DocumentInternet of things New Version 2017 Document
Internet of things New Version 2017 Document
 
The web in the world
The web in the worldThe web in the world
The web in the world
 
The Internet of Things
The Internet of ThingsThe Internet of Things
The Internet of Things
 
The Things in the INTERNET of THINGS.
The Things in the INTERNET of THINGS.The Things in the INTERNET of THINGS.
The Things in the INTERNET of THINGS.
 
Can the internet of things survive the coming war
Can the internet of things survive the coming warCan the internet of things survive the coming war
Can the internet of things survive the coming war
 
3 d internet
3 d internet3 d internet
3 d internet
 
Summarize the What Is Web 2.0
Summarize the What Is Web 2.0Summarize the What Is Web 2.0
Summarize the What Is Web 2.0
 
Monitoring Section of IoTs Smart Garbage System
Monitoring Section of IoTs Smart Garbage SystemMonitoring Section of IoTs Smart Garbage System
Monitoring Section of IoTs Smart Garbage System
 
API-Testing-in-the-IoT.pdf
API-Testing-in-the-IoT.pdfAPI-Testing-in-the-IoT.pdf
API-Testing-in-the-IoT.pdf
 
Keynote Sales Kickoff Interoute
Keynote Sales Kickoff InterouteKeynote Sales Kickoff Interoute
Keynote Sales Kickoff Interoute
 

Kürzlich hochgeladen

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Kürzlich hochgeladen (20)

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 

Prototyping Online Components(Part 01)_Internet of Things

  • 1. CHAPTER 07 (Part 1) PROTOTYPING ONLINE COMPONENTS IoT TY BSc.IT notes by Ms.Blety Alengadan
  • 2. CHAPTER 07 (Part 1) PROTOTYPING ONLINE COMPONENTS IoT TY BSc.IT notes by Ms.Blety Alengadan Topics Covered:  Getting Started with an API  Mashing up APIs  Scraping  Legalities
  • 3. Things should be “first class citizens” of the Internet, they do seem to be currently tied to particular websites or services. There is a good reason for this: unlike a general-purpose device, such as a computer, tablet, or phone, the physical object is designed for a purpose and doesn’t necessarily have a keyboard and screen to let it easily change its configuration. In Chapter 2, “Design Principles for Connected Devices”, how Internet of Things devices are “magical” objects: a physical thing with an embedded controller and sensors that allow it to do clever things that a merely solid or mechanical object couldn’t. Even with just these two components, you can already see some magical objects, such as air fresheners that pump fragrance into the room only when they sense that someone has walked past. IoT TY BSc.IT notes by Ms.Blety Alengadan
  • 4. In the near future, devices will most likely use standardized protocols to speak to each other and to other apps and computers on your local or personal network. For now, though, in most of the examples we look at, each device is tied to a single web service. For a personal project, creating a service may not be important, but if you’re developing a product to sell, you will want to be in control of the service—otherwise, you may have to recall every device to reprogram any time it is discontinued, changes terms and conditions, making your use of it abusive, or changes its API, making your code stop working. In fact, even Bubblino runs via a service at http://bubblino.com which allows users to customise their Bubblino to search for particular words and gives Adrian the flexibility to route all the Bubblino to a different service or API if anything changes. IoT TY BSc.IT notes by Ms.Blety Alengadan
  • 5. GETTING STARTED WITH AN API The most important part of a web service, with regards to an Internet of Things device, is the Application Programming Interface, or API. An API is a way of accessing a service that is targeted at machines rather than people. If you think about your experience of accessing an Internet service, you might follow a number of steps. For example, to look at a friend’s photo on Flickr, you might do the following:  Launch Chrome, Safari, or Internet Explorer.  Search for the Flickr website in Google and click on the link.  Type in your username and password and click “Login”.  Look at the page and click on the “Contacts” link.  Click on a few more links to page through the list of contacts till you seethe one you want.  Scroll down the page, looking for the photo you want, and then click on it. IoT TY BSc.IT notes by Ms.Blety Alengadan
  • 6. GETTING STARTED WITH AN API Although these actions are simple for a human, they involve a lot of looking, thinking, typing, and clicking. A computer can’t look and think in the same way. The tricky and lengthy process of following a sequence of actions and responding to each page is likely to fail the moment that Flickr slightly changes its user interface. For example, if Flickr rewords “Login” to “Sign in”, or “Contacts” to “Friends”, a human being would very likely not even notice, but a typical computer program would completely fail. Instead, a computer can very happily call defined commands such as login or get picture #142857 . IoT TY BSc.IT notes by Ms.Blety Alengadan
  • 7. MASHING UP APIs Perhaps the data you want is already available on the Internet but in a form that doesn’t work for you? The idea of “mashing up” multiple APIs to get a result has taken off and can be used to powerful effect. For example: Using a mapping API to plot properties to rent or buy—for example, Google Maps to visualise properties to rent via Craigslist, or Foxtons in London showing its properties using Mapumental. IoT TY BSc.IT notes by Ms.Blety Alengadan
  • 8. MASHING UP APIs The leading London estate agent Foxtons has become the first property player to use Mapumental maps on its website. Mapumental is a web-based application for displaying journeys in terms of how long they take,rather than by distance. IoT TY BSc.IT notes by Ms.Blety Alengadan
  • 9. MASHING UP APIs Fetching Flickr images that are related to the top headlines retrieved from The Guardian newspaper’s API. IoT TY BSc.IT notes by Ms.Blety Alengadan
  • 10. MASHING UP APIs Showing Twitter trends on a global map or in a timeline or a charting API. IoT TY BSc.IT notes by Ms.Blety Alengadan
  • 11. SCRAPING Screen scraping is the process of collecting screen display data from one application and translating it so that another application can display it In many cases, companies or institutions have access to fantastic data but don’t want to or don’t have the resources or knowledge to make them available as an API. In such cases we use screen scraping. IoT TY BSc.IT notes by Ms.Blety Alengadan
  • 12. SCRAPING Adrian has scraped the Ship AIS system ( www.shipais.com/ , whose data is semi- manually plotted by shipping enthusiasts) to get data about ships on the river Mersey, and this information is then tweeted by the @merseyshipping .He says this project is a way to “connect the river to the Internet”, so although this doesn’t have an Internet- connected “thing” as such, it arguably enters into the realm of the Internet of Things. IoT TY BSc.IT notes by Ms.Blety Alengadan Adrian is the author of the book ’Designing the Internet of Things’
  • 13. Clicked on Berwick, to get information about ships and ports near to that area. IoT TY BSc.IT notes by Ms.Blety Alengadan
  • 14. SCRAPING The Public Whip website ( www.publicwhip.org.uk/ ) is made possible by using a scraper to read the Hansard transcripts of UK government sessions (released as Word documents). With the resultant data, it can produce both human- and machine-readable feeds of how our elected representatives vote. Only for Understanding: Hansard is the traditional name of the transcripts of Parliamentary Debates in Britain and many Commonwealth countries. It is named after Thomas Curson Hansard (1776–1833), a London printer and publisher, who was the first official printer to the parliament at Westminster. The website "Public Whip" is a good way of seeing how each MP has voted: http://www.publicwhip.org.uk IoT TY BSc.IT notes by Ms.Blety Alengadan
  • 15. SCRAPING : www.publicwhip.org.uk IoT TY BSc.IT notes by Ms.Blety Alengadan
  • 16. SCRAPING The ScraperWiki site ( https://scraperwiki.com ) has an excellent platform for writing scrapers, in a number of dynamic programming languages, which collate data into database tables. Effectively, it provides infrastructure for “Mechanize” scripts (scripts for navigating between web pages) that you could run on your own computer or server but allows you to outsource the boring, repetitive parts to ScraperWiki. Their CEO, Francis Irving, used this for an Internet of Things project of his own. He scrapes the Liverpool council website page to find out when his recycling bin is due to be collected. His Binduino device ( https://github.com/frabcus/binduino ), an Arduino plus custom electronics, checks the result regularly and illuminates some electroluminescent wire to make his recycling bin glow when he needs to take it out. IoT TY BSc.IT notes by Ms.Blety Alengadan
  • 17. LEGALITIES Screen scraping (otherwise known as web scraping, data scraping, or web harvesting) is the action of using a software program or application to copy and extract data from a website to make use of it for another purpose. Depending on the circumstances, screen scraping presents a range of possible legal risks Screen-scraping may break the terms and conditions of a website. For example, Google doesn’t allow you to screen-scrape its search pages but does provide an API. Even if you don’t think about legal sanctions, breaking the terms and conditions for a company like Google might lead to its denying you its other services. Other data is protected by copyright or, for example, database rights. Scraping is not in itself illegal in the UK, but the data may be subject to copyright. Using it without the copyright owner's permission, especially if you are selling it, could lead to legal action. "Web scraping," also called crawling or spidering, is the automated gathering of data from someone else's website. Although scraping is ubiquitous, it's not clearly legal. A variety of laws may apply to unauthorized scraping, including contract, copyright issues. IoT TY BSc.IT notes by Ms.Blety Alengadan