Skip to content

Instantly share code, notes, and snippets.

import scrapy
from scrapy.http import FormRequest
class LoginSpider(scrapy.Spider):
name = 'login'
allowed_domains = ['quotes.toscrape.com']
start_urls = ['http://quotes.toscrape.com/login']
def parse(self, response):
<html>
<head>
<title>Menu Experiment en un fichier</title>
<style>
hr {
margin-block-start: 0px;
margin-block-end: 0px;
}
.menu_container {
<h1>Videos Piscine Illustrator</h1>
<h2>D00</h2>
<a href="https://elearning.intra.42.fr/uploads/video/video/1117/Piscine_Illustrator_-_D00_-_00_Re%CC%80gles__repe%CC%80res_et_magne%CC%81tisme.mp4">00_Regles__reperes_et_magnetisme</a><br>
<a href="https://elearning.intra.42.fr/uploads/video/video/1118/Piscine_Illustrator_-_D00_-_01_Les_diffe%CC%81rents_types_de_trace%CC%81s.mp4">01_Les_differents_types_de_traces</a><br>
<a href="https://elearning.intra.42.fr/uploads/video/video/1119/Piscine_Illustrator_-_D00_-_02_Les_Nuanciers.mp4">02_Les_Nuanciers</a><br>
<a href="https://elearning.intra.42.fr/uploads/video/video/1120/Piscine_Illustrator_-_D00_-_03_Les_formes_vectorielles.mp4">03_Les_formes_vectorielles</a><br>
<a href="https://elearning.intra.42.fr/uploads/video/video/1121/Piscine_Illustrator_-_D00_-_04_Plans__arrie%CC%80re-plans_et_calques.mp4">04_Plans__arriere-plans_et_calques</a><br>
<a href="https://elearning.intra.42.fr/uploads/video/video/1122/Piscine_Illustrator_-_D00_-_05_Les_outils_de_dessin.mp4">
"Earth" in 243 languages according to Wikipedia*
(sorted by roughly estimated language group, corrections welcome)
Aarde - Dutch
Aarde - Afrikaans
Aerde - Zeelandic
Art - Maltese
Eadn - Bavarian
@kaicarver
kaicarver / index.html
Created February 18, 2017 20:14 — forked from anonymous/index.html
Web Speech Synthesis Demo
<div id="page-wrapper">
<h1>Web Speech Synthesis Demo</h1>
<p id="msg"></p>
<input type="text" name="speech-msg" id="speech-msg" x-webkit-speech value="觀自在菩薩,行深般若波羅蜜多時,照見五蘊皆空,度一切苦厄。舍利子,色不異空,空不異色;色即是空,空即是色。受、想、行、識,亦復如是。">
<div class="option">
<label for="voice">Voice</label>
<select name="voice" id="voice"></select>
</div>
@kaicarver
kaicarver / README.md
Last active January 16, 2016 23:41 — forked from JoelBesada/README.md
Backtick Example Command

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.
<p>yo</p>
<p>yo</p>
@kaicarver
kaicarver / index.html
Last active January 16, 2016 22:06
Hahappy Babirthday
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>$title</title>
<style src="style.css"></style>
$styles
</head>
<body>