Skip to content

Commit c13a8aa

Browse files
hi
1 parent 092d299 commit c13a8aa

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

ur.py

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,50 @@ def parse_sub(self, response):
5656
sql = ("insert into public.ep select %s,'%s','%s',%s,%s,'%s','%s','%s','%s' where not exists ( select * from public.ep where dc='%s' and us='%s')"%(item['bid'],item['u'],item['nv'],item['li'],item['nr'],e1,o,item['rd'],u,item['rd'],u))
5757
cur.execute(sql)
5858
con.commit()
59+
60+
61+
62+
63+
<!DOCTYPE html>
64+
<html>
65+
<head lang="en">
66+
<meta charset="UTF-8">
67+
<title>CSS sprites</title>
68+
<style>
69+
70+
.rating-image {
71+
display: block;
72+
background: url(https://s3-media4.fl.yelpcdn.com/assets/srv0/yelp_styleguide/c2252a4cd43e/assets/img/stars/stars_map.png) no-repeat;
73+
float: left;
74+
overflow: hidden;
75+
position: relative;
76+
width: 128px;
77+
height: 22px;
78+
}
79+
#star_4
80+
{
81+
background-position: -3px -689px;
82+
}
83+
#star_4_half
84+
{
85+
background-position: -3px -714px;
86+
}
87+
#star_5
88+
{
89+
background-position: -3px -739px;
90+
}
91+
</style>
92+
</head>
93+
<body>
94+
95+
<div class="rating-image" id="star_4">
96+
97+
</div><br><br>
98+
<div class="rating-image" id="star_4_half">
99+
100+
</div><br><br>
101+
<div class="rating-image" id="star_5">
102+
103+
</div>
104+
</body>
105+
</html>

0 commit comments

Comments
 (0)