Skip to content

Commit

Permalink
优化虾米搜索
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHJK committed Jan 22, 2019
1 parent 53c7612 commit b32eaca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/extractors/xiami.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def xiami_search(keyword) -> list:
s = requests.Session()
s.headers.update(glovar.FAKE_HEADERS)
# 获取cookie
s.get('http://m.xiami.com')
s.head('http://m.xiami.com')
s.headers.update({'referer': 'http://m.xiami.com/'})

music_list = []
Expand Down

0 comments on commit b32eaca

Please sign in to comment.