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
#!/usr/bin/python | |
# FOR EDUCATIONAL PURPOSES ONLY | |
import requests | |
import math | |
import os | |
GOOGLE_CHUNK_ENDPOINT = "https://www.google.co.th/search?tbm=isch&asearch=ichunk&async=_id:rg_s,_pms:s,_fmt:pc{0}" | |
CHUNK_SIZE = 100 | |
TEXT_START_MATCH = "imgurl=" | |
TEXT_END_MATCH = "&" |
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 charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Queue</title> | |
<style> | |
body { |