0

私は、scraperwiki を使用して Python でコードを実行しています。ただし、このコードを実行すると、次のエラーが発生します。

トレースバック (最新の呼び出しが最後): ファイル "./code/scraper"、4 行目、scrapemark インポート スクレイプからの ImportError: Scrapemark という名前のモジュールはありません

コードは次のとおりです。

import scraperwiki
from scrapemark import scrape
import scraperwiki

for page in range(1,40):
  URL = "https://appexchange.salesforce.com/results?pageNo="+str(page)+"&filter=a0L3000000OvSOGEA3" #Marketing

  print URL
  html = scraperwiki.scrape(URL)
  scrape_data = scrape("""
   {*

   <a class="tile-title" href="{{ [mobile].[link] }}" id="{{ [mobile].[id] }}" title="{{ [mobile].[title1] }}"></a>

   *}
   """, html=html);

  data = [{'Title':p['title1'][0], 'URL':p['link'][0], 'ID':p['id'][0], 'Format':'Managed'} for p in scrape_data['mobile']]

  scraperwiki.sqlite.save(unique_keys=["URL"], data=data)

誰でもこれを修正する方法を教えてもらえますか?

4

0 に答える 0