« first day (739 days earlier)      last day (2617 days later) » 

6:02 PM
`ourlist = [1,1,2,2,3,4,5]
d1 = {}
for items in ourlist:
d1[items] = ourlist.count(items)

print(d1)`
 
1 message moved from Python
 
user7327263
6:39 PM
from BeautifulSoup import BeautifulSoup
from flask import json


def soupla(new_file):
RSS_FEED_LINKS_ATTRIBUTES = ['application/rss+xml', 'application/rss', 'text/rss+xml', 'text/rss']
ATOM_FEED_LINKS_ATTRIBUTES = ['application/atom+xml', 'application/atom', 'text/atom+xml', 'text/atom']
soup = BeautifulSoup(new_file.read())
rss_link = []
rss_a = []
atom_link = []
atom_a = []
for a in soup.find_all('a', href=True):
if a['type'] in RSS_FEED_LINKS_ATTRIBUTES:
rss_a.append(a['href'])
elif a['type'] in ATOM_FEED_LINKS_ATTRIBUTES:
 
1 message moved from Python
 

« first day (739 days earlier)      last day (2617 days later) »