eckendoerffer commited on
Commit
00fe717
·
1 Parent(s): 90144e9

Update extract_news/4_extract_news_url.py

Browse files
Files changed (1) hide show
  1. extract_news/4_extract_news_url.py +1 -1
extract_news/4_extract_news_url.py CHANGED
@@ -56,7 +56,7 @@ def process_news_source():
56
  global formatted_keys
57
 
58
  cursor = conn.cursor()
59
- query = ("SELECT `id`, `url`, `media` FROM `base_news` WHERE `link`='0' AND `step` > 0 AND `id` > 215000 AND `url` NOT LIKE 'https://avis-vin.%' AND `url` NOT LIKE 'https://www.elle.fr/%' AND `url` NOT LIKE 'www.lamontagne.fr/%' AND `url` NOT LIKE 'https://www.rtbf.be/%' AND `url` NOT LIKE 'https://www.tf1info.fr/%' AND `url` NOT LIKE 'https://www.futura-sciences.com/%' AND `url` NOT LIKE 'https://cdn-elle.ladmedia.fr/%' ORDER BY Rand() LIMIT 1")
60
  cursor.execute(query)
61
  row = cursor.fetchone()
62
 
 
56
  global formatted_keys
57
 
58
  cursor = conn.cursor()
59
+ query = ("SELECT `id`, `url`, `media` FROM `base_news` WHERE `link`='0' AND `step` > 0 ORDER BY Rand() LIMIT 1")
60
  cursor.execute(query)
61
  row = cursor.fetchone()
62