I am learning web scraping with python and using some libraries(Beautifulsoup and requests) to get the results. But when i am trying to pull the data of any web page let's say sears product url - https://www.sears.com/tradesman-talg1670-70-inch-economy-line-aluminum-gull/p-00937054000P?plpSellerId=Sears&prdNo=1&blockNo=1&blockType=G1 , so here i am not getting complete page source, i need to get product title, price, specifications etc.
I have found a url while checking in browser's console and it contains all product details in json format but i am still unable to pull these json data.
Here is a url for json format - https://www.sears.com/content/pdp/config/products/v1/products/04403935070P?site=sears
And below are the codes for pulling source code:
from bs4 import BeautifulSoup
import requests
import re
import json
s = requests.session() #start requests session
page = s.get("https://www.sears.com/tradesman-talg1670-70-inch-economy-line-aluminum-gull/p-00937054000P?plpSellerId=Sears&prdNo=1&blockNo=1&blockType=G1") #get the page
soup = BeautifulSoup(page.content)
#print(soup.encode("utf-8"))
print(soup)
Please check these codes and suggest me for better solution, Thanks in advance.