PyJSONProxy

simple proxy and scraper
git clone https://git.ce9e.org/PyJSONProxy.git

commit
050daa3039c9970652be8e18c2ad7c04af0bb7b0
parent
064cc5d5cb7870621660c7dc4d3be2a43d92efdd
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2015-12-06 21:40
Fix parse_html cache

Diffstat

M jsonproxy/lib.py 6 +++---

1 files changed, 3 insertions, 3 deletions


diff --git a/jsonproxy/lib.py b/jsonproxy/lib.py

@@ -3,9 +3,9 @@ import argparse
    3     3 from bs4 import BeautifulSoup
    4     4 
    5     5 try:
    6    -1 	from functools import lfu_cache
   -1     6 	from functools import lru_cache
    7     7 except ImportError:
    8    -1 	from cachetools import lfu_cache
   -1     8 	from cachetools import lru_cache
    9     9 
   10    10 ENDPOINTS = 'ENDPOINTS'
   11    11 
@@ -43,7 +43,7 @@ def get_fields(html, config):
   43    43 	return data
   44    44 
   45    45 
   46    -1 @lfu_cache()
   -1    46 @lru_cache()
   47    47 def parse_html(body):
   48    48 	return BeautifulSoup(body)
   49    49