ホームページ  >  に質問  >  本文

初心者 - Python クローラーの問題のヘルプ

問題の説明: ValueError: インデックス 21 でサポートされていない形式文字 'j' (0x6a)
つまり、下から 6 行目です。jpg j はどうしたのですか? ? ?
import urllib.request
from bs4 import BeautifulSoup
def get_content(url):

リーリー

def get_image(情報):

リーリー

url = "https://tieba.baidu.com/p/2218566379"
info = get_content(url)
print (info)
get_image(info)

phpcn_u1582phpcn_u15822636日前844

全員に返信(1)返信します

  • 迷茫

    迷茫2017-07-05 10:37:09

    は s%%s ではなく

    です

    返事
    0
  • キャンセル返事