This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | def value(k, degree, coefficients): | |
| ans = 0 | |
| for i in range(degree+1): | |
| ans += coefficients[i]*pow(k,i) | |
| return ans | |
| degree = input() | |
| coefficients = map(int,raw_input().split()) | |
| t=input() | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | url = "http://timesofindia.indiatimes.com/rss.cms" | |
| from bs4 import BeautifulSoup as bs | |
| import requests | |
| soup = bs(requests.get(url).content, "lxml") | |
| soup = soup.findAll("table",{"border":"0", "width":"740", "cellspacing":"0", "cellpadding":'0'}) | |
| print len(soup) | |
| dic = {} | |
| file = open("newsrss.txt","a") | |
| for i in soup: | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/env python | |
| from elasticsearch import Elasticsearch | |
| es = Elasticsearch() | |
| import json | |
| import os | |
| x= os.listdir("/home/varun/Desktop/git/zeroclickinfo-goodies/share/goodie/cheat_sheets/json") | |
| li=[] | |
| for xx in x: | 
NewerOlder