Skip to content

Instantly share code, notes, and snippets.

View bmitch's full-sized avatar

Bill Mitchell bmitch

  • Vancouver Island, BC, Canada
View GitHub Profile
@bmitch
bmitch / scraper.go
Created June 7, 2016 22:09
weather scraper
package main
import (
"fmt"
"github.com/PuerkitoBio/goquery"
"log"
"strings"
)
@bmitch
bmitch / scraper.go
Created June 2, 2016 21:39
Scraper
package main
import (
"fmt"
"golang.org/x/net/html"
"net/http"
"os"
"strings"
)
0 - Weather Victoria - 162.400
1 - CVARS Repeater - 146.680
2 - CVARS Repeater - 145.470
3 - CVARS Repeater - 442.600
10 - Shawnigan RCMP - 142.425
11 - Shawnigan RCMP - 141.1500
12 - Shawnigan RCMP - 141.180
13 - Shawnigan RCMP - 141.210
14 - Shawnigan RCMP - 141.300
15 - Shawnigan RCMP - 414.310

LARAVEL TIPS

Call Artisan Command from Controller, Repository or any other place in your App

<?php

/**
 * @author  Exadra37    <exadra37atgmailpointcom>
 * @since   2014/07/02
 */
import json
import os
json_data = open("top5.json").read()
data = json.loads(json_data)
data = data["feed"]
data = data['data']
print data[1]['link']
import json
import os
json_data = open("top5.json").read()
data = json.loads(json_data)
data = data["feed"]
data = data['data']
print data[1]['link']