Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
crawler
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
backend
crawler
Commits
b5bab9af
Commit
b5bab9af
authored
Jul 19, 2021
by
李小芳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标签
parent
2061209a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
csv-plugin.xml
.idea/csv-plugin.xml
+17
-0
crawler_xintang_ask_service.py
dev/xinyang_ask_tag/crawler_xintang_ask_service.py
+3
-4
No files found.
.idea/csv-plugin.xml
0 → 100644
View file @
b5bab9af
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"CsvFileAttributes"
>
<option
name=
"attributeMap"
>
<map>
<entry
key=
"/tasks/yangjingshu.csv"
>
<value>
<Attribute>
<option
name=
"separator"
value=
","
/>
</Attribute>
</value>
</entry>
</map>
</option>
</component>
</project>
\ No newline at end of file
dev/xinyang_ask_tag/crawler_xintang_ask_service.py
View file @
b5bab9af
...
...
@@ -25,8 +25,8 @@ def send_email_tome():
password
=
'EzJzSRyEG4Jibuy9'
toaddrs
=
"lixiaofang@igengmei.com"
content
=
'
hi all:
'
text_apart
=
MIMEText
(
content
)
content
=
'
爬取新氧热搜前100的词召回的商品,内容详见表格
'
text_apart
=
MIMEText
(
content
,
'plain'
,
"utf-8"
)
zip_file_week
=
'result1.csv'
zip_apart_week
=
MIMEApplication
(
open
(
zip_file_week
,
'rb'
)
.
read
())
...
...
@@ -38,7 +38,7 @@ def send_email_tome():
m
[
'From'
]
=
formataddr
((
"李小芳"
,
from_addrs
))
m
[
"To"
]
=
formataddr
((
"李小芳"
,
toaddrs
))
m
[
'Subject'
]
=
'新氧
美购数据
'
m
[
'Subject'
]
=
'新氧
商品信息
'
try
:
server
=
smtplib
.
SMTP_SSL
(
'smtp.exmail.qq.com'
,
465
)
...
...
@@ -187,7 +187,6 @@ class SoYongSpider(object):
# self.get_data_file = open(file_name, "a+", encoding="utf-8")
# self.read_data_file = open(self.file_name, "r", encoding="utf-8")
def
get_have_spider_keywords
(
self
):
import
os
have_get_service_info
=
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment