leandrocarneiro commited on
Commit
f5f34c2
1 Parent(s): a6bb63b

Upload search_engine.py

Browse files
Files changed (1) hide show
  1. search_engine.py +4 -1
search_engine.py CHANGED
@@ -31,7 +31,10 @@ def search_google(subject, sites):
31
  results.append(site)
32
  else:
33
  for s in sites_searched:
34
- results.append(s['link'])
 
 
 
35
  #time.sleep(3)
36
  print(' Total de sites encontrados: ' + str(len(results)))
37
 
 
31
  results.append(site)
32
  else:
33
  for s in sites_searched:
34
+ if 'pdf' not in s['link'].lower():
35
+ results.append(s['link'])
36
+ else:
37
+ print(' Arquivo PDF encontrado: ' + s['link'])
38
  #time.sleep(3)
39
  print(' Total de sites encontrados: ' + str(len(results)))
40