| ... | ... |
@@ -1,10 +1,10 @@ |
| 1 | 1 |
from userio import * |
| 2 | 2 |
import requests |
| 3 | 3 |
import re |
| 4 |
+import newsParser |
|
| 4 | 5 |
|
| 5 | 6 |
def article(url): |
| 6 | 7 |
say("Article: "+url)
|
| 7 |
- url = url.replace("www.midilibre.fr","www.midilibre.fr/amp")
|
|
| 8 | 8 |
r = requests.get(url, allow_redirects=True) |
| 9 | 9 |
content = r.text |
| 10 | 10 |
|