This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name www.yupyupnope.com; | |
rewrite ^/(.*) https://yupyupnope.com/$1 permanent; | |
} | |
server { | |
listen 80; | |
server_name yupyupnope.com; | |
rewrite ^/(.*) https://yupyupnope.com/$1 permanent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'), | |
http = require('http'), | |
https = require('https'), | |
express = require('express'), | |
token = '', | |
bodyParser = require('body-parser'), | |
request = require('request'); | |
var port = 443; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>鍵盤開戰 復刻 PTTATK</title> | |
<link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet"> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import threading, urllib, urlparse | |
from HTMLParser import HTMLParser | |
import sys | |
class LinkHTMLParser(HTMLParser): | |
A_TAG = "a" | |
HREF_ATTRIBUTE = "href" | |
def __init__(self): | |
self.links = [] |