Skip to content

Instantly share code, notes, and snippets.

View llamadayo's full-sized avatar
🥊
🐫 🐑 🐶 🐱 🐰 🐹 🦊 🦁

Mr. Llama llamadayo

🥊
🐫 🐑 🐶 🐱 🐰 🐹 🦊 🦁
  • NCHU, NCTU
  • Taiwan
  • 02:26 (UTC +08:00)
View GitHub Profile
http://blog.itist.tw/2016/08/easter-eggs-or-funny-commands-with-linux-shell.html
http://blog.itist.tw/2016/12/34-best-operating-systems-for-raspberry-pi.html
http://blog.itist.tw/p/how-to-study-raspberry-pi.html
/**
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
sudo apt-get install update
sudo apt-get install build-essential libssl-dev
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh | bash
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 192.168.56.1
netmask 255.255.255.0
import scrapy
from bs4 import BeautifulSoup
from apple.items import AppleItem
# from scrapy.spiders import CrawlSpider, Rule
# from scrapy.linkextractors import LinkExtractor
class AppleCrawler(scrapy.Spider):
name = 'apple'
start_urls = ['http://www.appledaily.com.tw/realtimenews/section/new/']
def parse(self, response):
domain = 'http://www.appledaily.com.tw'
bcdedit /set "{bootmgr}" path \EFI\ubuntu\grubx64.efi