def exec_save_answers():
  urls = '''
    https://www.zhihu.com/question/40305228/answer/86179116
    https://www.zhihu.com/question/36466762/answer/85475145
    https://www.zhihu.com/question/33246348/answer/86919689
    # https://www.zhihu.com/question/39906815/answer/88534869

    # https://www.zhihu.com/question/40700155/answer/89002644
    # https://www.zhihu.com/question/36380091/answer/84690117
    # https://www.zhihu.com/question/33246348/answer/86919689
    # https://www.zhihu.com/question/35254746/answer/90252213
    # https://www.zhihu.com/question/23618517/answer/89823915

    # https://www.zhihu.com/question/40677000/answer/87886574

    # https://www.zhihu.com/question/41373242/answer/91417985
    # https://www.zhihu.com/question/47275087/answer/106335325
    # https://www.zhihu.com/question/47275087/answer/106335325 买不起房是房价太高还是工资太低?
    # https://www.zhihu.com/question/36129534/answer/91921682  印度经济会在本世纪追上中国吗?
    # https://www.zhihu.com/question/22513722/answer/21967185  火车票涨价是否能解决春运问题?
    # https://www.zhihu.com/question/32210508/answer/57701501  蒋兆和《流民图》为何受到批判?
    # https://www.zhihu.com/question/27820755/answer/107267228 裸辞后怎样解释以获工作机会?
  '''
  for url in datalines(urls):
    save_answer(url.split(' ')[0], folder='test')
Esempio n. 2
0
  def datamatrix(text, title=True):
    ''' 多行文本转换为二维数据, 自动识别数字
    # d = "
    # Col1,Col2,Col3,中文列
    # 1,2,1,female
    # 2,3,1,male
    # 3,2,6.03,male
    # "
    # mat, title = datamatrix(d, title=True)
    # mat   | should.eq([[1,2,1,'female'],[2,3,1,'male'],[3,2,6.03,'male'],])
    # title | should.eq(['Col1','Col2','Col3','中文列'])
    '''
    def convert(text):
      if text.isdigit(): return int(text)
      try: return float(text)
      except ValueError as e: return text

    data = iter(datalines(text))
    if title: title = re.split(r'\s*,\s*', next(data))
    else: title = []

    array = []
    for line in data:
      line = [convert(e) for e in re.split(r'\s*,\s*', line)]
      array.append(line)
    return array, title
Esempio n. 3
0
def test_gcd():
  '''读取高程点'''
  cad = AutoCAD()
  file_path = 'path'
  for line in datalines(open(file_path).read()):
    index, _, x, y, elevation = line.split(',')
    cad.add_text(elevation, origin=(float(x), float(y)))
    cad.add_point(float(x), float(y))
Esempio n. 4
0
def test_jinja():


  from infotext import InfoText

  text = '''
    单位名称: 测试单位
    项目名称: 测试项目
    项目编号: 2015-项目编号-001
    面积90: 12345.600
    面积80: 12345.300
    地籍号: 1234567890010010000
    四至: 测试路1;测试街2;测试路3;测试街4
    土地坐落: 测试路以东,测试街以南
    area: 1000
    已设定值: value
  '''
  info = InfoText.from_string(text)




  template = '''
  title
  {{单位名称}}                           -> 测试单位
  {{100 - 98}}                           -> 2
  {{'%.2f' | format(面积90 - 面积80)}}   -> 0.30
  {{面积80|round(1)}}                    -> 12345.3

  {{'%.2f'| format(area)}}               -> 1000.00
  {{'%.1f'| format(area)}}               -> 1000.0
  {{'%.4f'| format(area)}}               -> 1000.0000
  {{ "Hello " ~ 单位名称 ~ " !" }}        -> Hello 测试单位 !

  {{ "Hello World"|replace("Hello", "Goodbye") }} -> Goodbye World
  {{ "aaaaargh"|replace("a", "d'oh, ", 2) }} -> d'oh, d'oh, aaargh
  {{area}}
  {area}
  {{未设定值|d(default_value='default')}}  -> default
  {{已设定值|d(default_value='default')}}  -> value

  {{四至|truncate(12, killwords=True)}}  -> 测试路1;测试街2;测试...





  '''

  t = Template(template)
  result = t.render(**info.content)
  for line in datalines(result):
    if '->' in line:
      rendered, spec = line.split('->')
      if rendered.strip() != spec.strip():
        print('! ', line)
Esempio n. 5
0
def test_add_task_by_author():

  ids = '''
  shi-yidian-ban-98
  xbjf
  zhao-hao-yang-1991
  mandelbrot-11
  chenqin
  leng-zhe
  spto
  xiepanda
  cogito
  xu-zhe-42
  huo-zhen-bu-lu-zi-lao-ye

  cai-tong
  shu-sheng-4-25
  BlackCloak
  ma-bo-yong
  hutianyi
  Metaphox
  calon

  ma-qian-zu
  skiptomylou

  sinsirius 费寒冬
  shinianhanshuang 十年寒霜
  youhuiwu 程步一
  xie-wei-54-24


  # talich
  # commando
  # fu-er
  # tassandar
  # zhou-xiao-nong
  # yinshoufu
  # tangsyau
  # lianghai
  '''
  for author_id in datalines(ids):
    # for answer in yield_author_answers(id, limit=3000, min_voteup=100):
    #   url = zhihu_answer_url(answer)
    #   count += 1
    #   log('<{}> {}'.format(count, url))
    #   Task.add(url=url)
    if ' ' in author_id:
      author_id = author_id | grep_before(' ')
    log(author_id)
    Task.add_by_author(author_id, limit=2000, min_voteup=1,
                       stop_at_existed=5,
                       force_start=False)
def exec_massive_download():

  # save_author('http://www.zhihu.com/people/nordenbox')
  urls = '''
    # http://www.zhihu.com/people/leng-zhe
    # http://www.zhihu.com/people/ji-xuan-yi-9
    # http://www.zhihu.com/people/Ivony
    # http://www.zhihu.com/people/BlackCloak

    # http://www.zhihu.com/people/hecaitou
    # http://www.zhihu.com/people/ma-bo-yong

    # http://www.zhihu.com/people/hutianyi
    # http://www.zhihu.com/people/lawrencelry
    # http://www.zhihu.com/people/Metaphox

    # http://www.zhihu.com/people/calon
    # http://www.zhihu.com/people/yolfilm
    # http://www.zhihu.com/people/superwyh
    # http://www.zhihu.com/people/cai-tong
    # http://www.zhihu.com/people/xiepanda




    # http://www.zhihu.com/people/cogito
    # http://www.zhihu.com/people/talich
    # http://www.zhihu.com/people/commando
    # http://www.zhihu.com/people/fu-er

    # http://www.zhihu.com/people/tassandar
    # http://www.zhihu.com/people/fei-niao-bing-he
    # http://www.zhihu.com/people/zhou-xiao-nong
    # http://www.zhihu.com/people/wang-lu-43-95
    # http://www.zhihu.com/people/yinshoufu
    # http://www.zhihu.com/people/tangsyau
    # http://www.zhihu.com/people/lianghai
    # http://www.zhihu.com/people/zhang-jia-wei
    # http://www.zhihu.com/people/bo-cai-28-7

    # all done
  '''

  urls = '''
    http://www.zhihu.com/people/sa-miu-47-86
    http://www.zhihu.com/people/xubowen
  '''


  for url in datalines(urls):
    save_from_author(url, folder='authors_explore', min_voteup=1000)
Esempio n. 7
0
def test_gcd_string():
  '''读取高程点 读取坐标点'''
  s = '''

  # 01,,376173,875806,20.812
  # 01,,376167,875809,20.881
  # 01,,376298,875822,20.780
  # 01,,376295,875827,20.744
  # 01,,376399,875735,20.760
  # 01,,376405,875734,20.872

  j6,,376230.527,875750.679,20.947
  j5,,376226.292,875743.894,20.787
  j8,,376314.162,875580.859,20.039
  j7,,376308.053,875584.223,20.903
  j1,,376051.421,875669.464,20.911
  j2,,376122.484,875534.670,20.916
  j3,,376121.527,875531.260,20.973

  '''


  s = '''

    376897.510 871120.891
    376917.510 871120.891
    376917.510 871100.891
    376897.510 871100.891
    376127.488 878184.564
    376172.488 878184.564
    376172.488 878174.564
    376127.488 878174.564

  '''
  cad = AutoCAD()
  for line in datalines(s):
    index, _, x, y, elevation = line.split(',')
    cad.add_text(elevation, origin=(float(x), float(y)))
    cad.add_point(float(x), float(y))
Esempio n. 8
0
def test_add_articles_by_zhuanlan_title():
  column_ids = '''
    wontfallinyourlap
    necromanov
    smartdesigner
    plant
    jingjixue
    # 天淡银河垂地
    Mrfox
    laodaoxx
    startup
    intelligentunit
    musicgossip


    pianofanie
    c-sharp-minor
    xiaoleimlnote
    hsmyy
    # uqer2015
  '''
  for column_id in datalines(column_ids):
    Task.add_articles(column_id=column_id, limit=3000, min_voteup=1,
                      stop_at_existed=5)
def test_knowledgewealth():
  s = '''
    http://www.vccoo.com/v/b9c80e
    http://www.vccoo.com/v/281ebb
    http://www.vccoo.com/v/cc1c1c
    http://www.vccoo.com/v/b2ed93
    http://www.vccoo.com/v/899e61
    http://www.vccoo.com/v/b62073
    http://www.vccoo.com/v/4a8b83
    http://www.vccoo.com/v/67dfde
    http://www.vccoo.com/v/2d11aa
    http://www.vccoo.com/v/dfbbd4
    http://www.vccoo.com/v/f5b94c
    http://www.vccoo.com/v/456a41
    http://www.vccoo.com/v/f68c61
    http://www.vccoo.com/v/36ead5
    http://www.vccoo.com/v/10fead
    http://www.vccoo.com/v/6cf373
    http://www.vccoo.com/v/2c7531
    http://www.vccoo.com/v/471418
    http://www.vccoo.com/v/bc650c
    http://www.vccoo.com/v/6c9518
    http://www.vccoo.com/v/5a3234
    http://www.vccoo.com/v/356f01
    http://www.vccoo.com/v/35b3b7
    http://www.vccoo.com/v/61b98a
    http://www.vccoo.com/v/7ee861
  '''
  for line in datalines(s):
    log(line)
    # log(follow_redirect(line))

  s_finish = '''
    # zhaohaoyang
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=2650672803&idx=1&sn=032a476cef35b974ed5f39e9b07fefa9#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=2650672799&idx=1&sn=27453994634bb0245e9b4aaea0942b2b#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=2650672791&idx=1&sn=c72f74615feb49c29d2d039bd20d8c09#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=2650672788&idx=1&sn=4851efd729fa6b28c6335b9ba911393b#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=2650672773&idx=1&sn=c06f03b9f0d72a33281e4ff71a09b2ee#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=2650672765&idx=1&sn=d7472177530167c4031e8bfda8e74ef1#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=2650672749&idx=1&sn=f0fbfcf12ae9f691e7ec61730613b0fb#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=2650672739&idx=1&sn=e72ac99a37b0076dcd28446814aaa702#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=2650672734&idx=1&sn=bbb6f4805603e04917cf1a7c99f328f6#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=2650672727&idx=1&sn=102ab61d5d2299bffe26087f3f190b23#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=2650672721&idx=1&sn=736094e9955e5bead81524fecf90bc7f#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=2650672712&idx=1&sn=5f0ec02b5191a0cfea1067e25b8a844d#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=2650672708&idx=1&sn=4b1f7d3e02a52c50217d8d274c10e325#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=2650672687&idx=1&sn=03e8a22e114f6de57865a5a26e32f640#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=2650672679&idx=1&sn=aa72c26e937580b45df811e0efc957ee#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=403189023&idx=1&sn=8f5774a37f965d3e33901172d191ac91#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=402667616&idx=1&sn=bff275d46d168f9844d1ebacc5d70ec6#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=402419132&idx=1&sn=3d4c50c89f487cd2de18e381d339f0e8#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=402782125&idx=1&sn=8ffaad2bc1e94f2f550f02eb01759d69#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=402997622&idx=1&sn=f9eaa33a7d8894cc754b84949d89d096#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=402265925&idx=1&sn=5de1f01d0c586185a06f71b0818e3568#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=402904215&idx=1&sn=c2c52de290010b9af4b0361b3e3290ce#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=403020365&idx=1&sn=0937c509bf719c7735ea0c834a82b602#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=402345108&idx=1&sn=b41b60214c36cfb20e9a05e9d2a35704#rd
    http://mp.weixin.qq.com/s?__biz=MjM5NzE2NTY0Ng==&mid=402149805&idx=1&sn=76473bc0189c5b70bb438ef0dfd326a1#rd
  '''


  zhenjiaolujun = '''
    # 今年我见过最惊艳的项目,没有之一
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652691376&idx=1&sn=caccc74c9b639b3f824821fc3d02f04b&chksm=84147a83b363f395d433bdc9706018c2e660f72938c404841f272aa42c8798f2307ba5dfff3e#rd
    # 今天下午4点,卢俊在斗鱼直播
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652691376&idx=2&sn=4cb8b4b8e133d2c5af847f3f9b39a4e8&chksm=84147a83b363f3957847479f99a31836bf6c04e07e9154a2d18c38ae3957af54366243f7b370#rd
    # 商业地产的希望之处,来自走投无路
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652691331&idx=1&sn=8c0756fa629940953ac8e353d662bf8d&chksm=84147ab0b363f3a6460df0e4581c0853f31b68a0bb0d729a52374af38414cd44fb9596e56205#rd
    # 这是一场霸气的发布会
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652691331&idx=2&sn=f672fb6ba3c0ef904d42f94d920bfc4e&chksm=84147ab0b363f3a6cfd9694d4808534093373c57828bdced1ce78ba5940d81ed1e903190abd9#rd
    # 做商业地产,也许可以听听这段异类的观点
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652691310&idx=1&sn=dc8a15db8b83762102c782cff6d080c5&chksm=84147a5db363f34b0d0b7ff6590bd517e4ab20c7a893328a3caab5cd4cab4c7bcf67a3d06282#rd
    # 马云开放湖畔大学,我成了第一批学员
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652691279&idx=2&sn=370e37b815ff58e8266ac09d53182949&chksm=84147a7cb363f36ab4244a9219e197b00acbdcfbf5d6f53897c3389e5314e12014df939cfbeb#rd
    # 20天,我卖了1200套……
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652691260&idx=2&sn=931dab791cba8cce5dd14fb1e4ed5f07&chksm=84147a0fb363f319b4e22e03397bc968ea28ac9cc3ffd81c6dedd0c58146919d574986a9d025#rd
    # 共享经济的前提是共享文明
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652691260&idx=1&sn=49654f335b8ec54086e2776de0f37b62&chksm=84147a0fb363f31928698a98025dc9cad27992a87c951c0344a7661c42a5a3533d511ebb8bbf#rd
    # 哪有什么爱恨情仇,郭曹互杀早已在各行各业千百回上演
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652691255&idx=1&sn=66a0d824bf66ec612dd011a49046f0bc&chksm=84147a04b363f3126057870680fa02ac3664f4bafc727c5efb0c6cd85184ba79d0115c9a39ac#rd
    # 微微一笑大结局,偶像剧的剧情但三观比谁都正
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652691169&idx=1&sn=00fd50fa72bbd58e380858bba720a96b&chksm=84147bd2b363f2c41cff8324d2d6a59ff94baf4e860a18625531e7d481b31c1c633843e426aa#rd
    # 我想说个故事:地产人的无能为力和无可奈何
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652691115&idx=1&sn=bace23bc811274b0b420c9a481a21a69&chksm=84147b98b363f28ea4262d28a1a9bf91d4da9a04b15c58bfb4a395b1d48a9884381fce16591e#rd
    # 今天下午四点,我开好房等你……
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652691115&idx=4&sn=d16eca2b401ca1c5bc1ffa48eb4fa09d&chksm=84147b98b363f28ea37d3afc7aaef6879522da9a006083b54c9ab17f10e4c5c299578592275d#rd
    # 天蓬元帅撩嫦娥为啥会失败?
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652691115&idx=3&sn=5ab5881be36243f0baffd234c9dc358b&chksm=84147b98b363f28e2eb6d313f924948d797d05dfac2b49d7b0a196d6af351a03e490d3afacab#rd
    # 如果有一天我不见了,来这个小号找我
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652691115&idx=2&sn=c40b165adec5d261860b9b2b41bcedfc&chksm=84147b98b363f28e08f93ae992be7359ffe7878fb1d650e2629b386ebcc0e69d65b8beb1db96#rd
    # 明天,我开好房等你……
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652691110&idx=2&sn=911dfaca546980abfb1d6a0f3168d12e#rd
    # 为了买房,我们会不会过的像这部三级片一样
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652691110&idx=1&sn=a21361e29cfd24ebbd0050bf8bc33850#rd
    # 这么多年过去了,它依然是上海地产史上第一奇葩
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652691045&idx=1&sn=227e10184742f6cca4b3830764f3b141#rd
    # 深夜,一个地产人走进方丈的禅房
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690966&idx=1&sn=a5b384dce9f040405c1e3be37beef581#rd
    # 疯了
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690948&idx=1&sn=8bfb9cba2915b34d9873eea746bf5448#rd
    # 这可能是当下三观最正的买房建议了
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690955&idx=1&sn=d105d46dcc2f22495b6416dc4b293da3#rd
    # 高低配让开发商赚了钱,却让我们忘了别墅真正的模样
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690955&idx=2&sn=9f8a8c23ca60ac68d1b8647f8d80dd8f#rd
    # 易居合并,哪有无缘无故的爱
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690930&idx=1&sn=845fc27ea2e2521074ca4a01dd2198b4#rd
    # 从这两个撩妹的故事,学会如何送客户礼物
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690930&idx=2&sn=d485a48e795182175f04b8c105701adb#rd
    # 地产人的小目标都在这里
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690928&idx=1&sn=69c273ebc040b9622d24e57fffcef7a0#rd
    # 生意最好的时候,我却关闭了购房咨询服务
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690886&idx=1&sn=383d22499d8e5875fc89df755f8406f7#rd
    # 此刻,房地产这口饭,没人能够下咽
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690883&idx=1&sn=b1660e5c170a4e1ef00c231c713df387#rd
    # 这可能是关于联合办公空间设计最棒的书
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690883&idx=2&sn=a9550df4c15e28b0dc1a0071ca669343#rd
    # 90+出了个从里到外真正的好三房
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690845&idx=1&sn=ade8502a5d066dea1c54d297e2ccfd4e#rd
    # 卖断货的真叫卢俊笔记本,又上架啦
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690845&idx=2&sn=e51f3fb84274a978479db9ee7c932840#rd
    # 令我不安的地产鸦片战争终归还是来了
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690826&idx=1&sn=313e015789f514a3318b1de88524f6f8#rd
    # 卢俊定制公交卡获奖名单公布!看看有你么~
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690826&idx=2&sn=2e02761c1dc5a50ce07c80f261f388ec#rd
    # 上海的2040,去年纲要和今年草案有几个微妙变化
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690797&idx=1&sn=26e6ebddbcb0bb171c36f5bc193c34da#rd
    # 从这两个撩妹的故事,学会如何送客户礼物
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690797&idx=2&sn=258820d645eda2040585310e7f250dc5#rd
    # 每个人心中都有一个猴子捞月的故事【LU的店】
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690753&idx=2&sn=78d112528fe4922f3e72481943f9d1d0#rd
    # 丢人啊,在奥运会上贴牛皮癣,还是做房地产的
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690753&idx=1&sn=f13898a65d06589cf82a2efdea73c59e#rd
    # 千年老二未必悲情,这是李宗伟即将开始的另一种身份
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690733&idx=1&sn=95e30a0b611a44773dd2ffaf4daf7df7#rd
    # 为这个盒子花的心思,比一个楼盘还多
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690718&idx=1&sn=6b9eb5bfd633996babdc9d11f1fc95f1#rd
    # 再重温下《美人鱼》里那场土拍狂欢吧
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690714&idx=1&sn=19fb48f860a6c4ee287ec971d82f039d#rd
    # 顾村地王要出,这一次值多少钱
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690678&idx=2&sn=7ce9f73f5be0bb63c926928a8b7bd7cd#rd
    # 一个只有女人看得懂的户型
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690678&idx=1&sn=4362d9c90d67c3787470297f4d08a940#rd
    # 说三个成功的故事,却是劝你别碰商业地产
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690668&idx=1&sn=914c6163f8692f4c013d9d30f758145b#rd
    # 这是首严肃的地产狗之歌
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690645&idx=1&sn=7164effd38bdfa4f7fc9ebebd4183571#rd
    # 联合办公们,你真的懂创业者的需求?
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690646&idx=1&sn=b78f2800758b1c68d70aec0beace3509#rd
    # 做地产这行,谁没碰到点极品事
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690638&idx=1&sn=253cc878e53c3972b81edd8bb97ec158#rd
    # 奥运画风都变了,房地产却高傲的没有一丝改变
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690636&idx=1&sn=d7b516ea9cae72842afd2029b8ee53e9#rd
    # 一个没人敢复制的项目
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690628&idx=1&sn=26a87fc2b35d3c45c89246149b8dc083#rd
    # 地产人,我们必须试着接受这些惨烈现实
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690560&idx=1&sn=59cc3ffc26d03ba2e6d3c4f1995dbf7f#rd
    # 我最关心的三个楼市问题,这次都有了答案
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690547&idx=1&sn=bbb3b7023c621b58190f561021e7bdd1#rdok
    # 恒大买万科,无非是拿回一个月前的头条而已
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690540&idx=1&sn=b976bf014f1c36524e38db729c69f978#rd
    # 地产这扇门已经对一些人关闭
    http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690522&idx=1&sn=a4635c06a9eee3a612f97414872c4c1c#rd


  '''
  zhenjiaolujun = 'http://mp.weixin.qq.com/s?__biz=MzA4MzA3MzExNg==&mid=2652690646&idx=1&sn=b78f2800758b1c68d70aec0beace3509#rd'

  for url in datalines(s_finish):
    page = fetch_weixin_blog(url)
    path = format_weixin_filename(page['title'] + '.md')
    print(page['content'], file=open('zhao/' + path, 'w', encoding='utf-8'))