2018-08-09 amazonのアフィリエイトコードからasinコードを抜き出す python text = """ """ hoge = text.split("asins=")[-1] asin_code = hoge.split("&bc1=")[0] print(asin_code)