Skip to content

Instantly share code, notes, and snippets.

View harej's full-sized avatar

James Hare harej

View GitHub Profile
import requests
import json
import sys
from multiprocessing.dummy import Pool as ThreadPool
from wikidataintegrator import wdi_core, wdi_login
from wikidataintegrator.wdi_core import WDItemEngine
mediawiki_api_url = 'https://iagraph.wiki.opencura.com/w/api.php'
sparql_endpoint_url = 'https://iagraph.wiki.opencura.com/query/sparql'

Keybase proof

I hereby claim:

  • I am harej on github.
  • I am harej (https://keybase.io/harej) on keybase.
  • I have a public key ASDTkxXZLirRVO3P-J1MWRftp-qZeodb4Aeq9GZSazULIwo

To claim this, I am signing this object:

@harej
harej / bot.py
Created March 26, 2023 18:03
Phabricator task creation bot for IABot IRC channel
import irc.client
import requests
import re
from credentials import (
IRC_SERVER, IRC_CHANNEL, IRC_NICKNAME,
PHABRICATOR_API_KEY, PHID
)
authorized_hostnames = [
"user/hare",