+ All Categories
Home > Technology > "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

"Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

Date post: 15-Apr-2017
Category:
Upload: tech-in-asia-id
View: 97 times
Download: 0 times
Share this document with a friend
47
Build a Web Scraper with Angular 2 & GO 17 Nov 2016 @ Balai Kartini Sigit Prayoga
Transcript
Page 1: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

Build a Web Scraper with Angular 2 & GO17 Nov 2016 @ Balai Kartini

Sigit Prayoga

Page 2: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

Sigit Prayoga.Initiator of JLP

People Development Manager @ Obortech

Just about 6 years experience.Worked onsite with TiVo, Best Buy, JC

Penney & JPMC.

gh: @sigit-prayoga

Page 3: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

[DEMO]

Page 4: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

Simple, huh?

Page 5: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

1.Bootstrap Angular 2 App with angular-cli

Page 6: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

2. Create http request di Angular 2

Page 7: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

3. Create a RESTful API

Page 8: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

4. Web Scraping with GoQuery

Page 9: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

5. Build and run GO

Page 10: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

1.Bootstrap Angular 2 App with angular-cli

2.Create http request di Angular 23.Create a RESTful API4.Web Scraping with GoQuery5.Build and run GO

Page 11: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

In common practice what do we need?

Page 12: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

Database || Open API

Page 13: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

Database

Page 14: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

[{“name”:”iPhone 7 White 128 GB”,“description”:”lorem ipsum

lorem”,“categories”:[cat1, cat2, cat3,

cat4]},{

“Name”:”lemari baju”,“description”:”lorem ipsum

lorem”,“categories”:[cat1, cat2, cat3,

cat4]},{

“Name”:”sepatu lari”,“description”:”lorem ipsum

lorem”,“categories”:[cat1, cat2, cat3,

cat4]}]

Page 15: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

Frontend Backend Database

Page 16: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

So, let’s input all products then?

Page 17: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)
Page 18: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

OPEN API

Page 19: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)
Page 20: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

Application Program Interface

Page 21: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

Open for public usage?

Page 22: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)
Page 23: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

No database, No open API?!

Page 24: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

No worries

Page 25: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

Let’s scrap this sh*t!

Note: Only for sharing purpose. More research required about the legality before you really want to do this.

Page 26: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

What is web scraping?

Page 27: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)
Page 28: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

How about searching category?

Page 29: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)
Page 30: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)
Page 31: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)
Page 32: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)
Page 33: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)
Page 34: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)
Page 35: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)
Page 36: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)
Page 37: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)
Page 38: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)
Page 39: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)
Page 40: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)
Page 41: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)
Page 42: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)
Page 43: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

[..SEE THE CODE..]

Page 44: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

https://github.com/sigit-prayoga/web-scraper-angular2

Page 45: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

Questions?

Page 46: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)
Page 47: "Build A Web Scraper With GO & Angular2" by Sigit Prayoga (JLP Community)

Recommended