diff options
author | emkael <emkael@tlen.pl> | 2015-07-03 13:46:22 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2015-07-03 13:46:22 +0200 |
commit | 1aef06a04ec087128e67fb7ccbe099131501db6c (patch) | |
tree | 5e92f13e3e75949280d464fcad182d3d18ce0fd5 /http/index.py | |
parent | ae86a12077d1bcb9f1906523d6ebdfdb7aa8bc26 (diff) |
* congratulations to mr Wasłowicz on his new TD title
Diffstat (limited to 'http/index.py')
-rw-r--r-- | http/index.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http/index.py b/http/index.py index 4a5dd27..1628ae2 100644 --- a/http/index.py +++ b/http/index.py @@ -25,7 +25,7 @@ def fetch_with_user_agent_spoof(cache_path, remote_url, user_agent): '?' + urllib.urlencode({'pid_search': 13650, 'p': 21})) content = opener.open(remote_url).read() if egg: - content = re.sub(r'src="\.\./cezar1/fots.*?"', 'src="pic/egg.jpg"', content.replace('asłowicz', 'ąsłowicz')) + content = re.sub(r'src="\.\./cezar1/fots.*?"', 'src="pic/egg.jpg"', content.replace('asłowicz', 'ąsłowicz').replace('ważną licencją', 'gwiazdką')) open(cache_path, 'w+').write(content) # returns content of cached file, refreshing cache if necessary |