Skip to content

Instantly share code, notes, and snippets.

@pleum
pleum / fetchGoogleImage.py
Created May 11, 2018 09:08
Just a Python script for bulk download images from Google search.
#!/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 = "&"
@pleum
pleum / queue.html
Last active March 17, 2017 14:27
Algorithm
<!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 {