This file contains hidden or 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
function getSize(){ | |
var rows = 0; | |
while(true){ | |
var nextRowGrid = document.getElementById("position-1-" + (rows+1)); | |
if(nextRowGrid){ | |
rows++ | |
}else{ | |
break; | |
} | |
} |
This file contains hidden or 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 requests | |
import time | |
from bs4 import BeautifulSoup | |
import os | |
import re | |
import urllib.request | |
import json | |
PTT_URL = 'https://www.ptt.cc' |