"publicationCollection": "#react-root > section > main > article > div > div > div > div > a", "publicationImage": "div:nth-child(1) > a > div > div.KL4Bh > img", "targetPublication": " a > div > div", "publicationUserLogin": "******" " div.o-MQd.z8cbW > div.PQo_0.RqtMr > div.e1e1d > a", "publicationDiv": " div > div._9AhH0 ", "publicationLink": "div:nth-child(1) > a", "publicationTime": "body > div._2dDPU.vCf6V > div.zZYga > div > article > div.eo2As > div.k_Q0X.NnvRN > a > time", "publicationDescription": ".PpGvg > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > span:nth-child(2)", "publicationClosePopupButton": "body > div._2dDPU.vCf6V > div.Igw0E.IwRSH.eGOV" "_._4EzTm.BI4qX.qJPeX.fm1AK.TxciK.yiMZG > button", "paginationArrow": "body > div._2dDPU.vCf6V > div.EfHg9 > div > div > a._65Bje.coreSpriteRightPaginationArrow", } webDriver = webdriver.Chrome() link = LinkPdo(session) linkCollection = link.get_all() urlCollection = [] for targetLink in linkCollection: urlCollection.append(targetLink.link) post = PostPdo(session) parserEntity = Parser(webDriver, selectorCollection, post) parserEntity.login(userConfig["login"], userConfig["password"]) for url in urlCollection: parserEntity.get_post_row(url) webDriver.close() # postPdo.one_by_id(2)
"div:nth-child(1) > a > div > div.KL4Bh > img", "targetPublication": " a > div > div._9AhH0 ", "publicationDiv": " div > div._9AhH0 ", "publicationLink": "div:nth-child(1) > a", "publicationTime": "body > div._2dDPU.vCf6V > div.zZYga > div > article > div.eo2As > div.k_Q0X.NnvRN > a > time", "publicationDescription": ".PpGvg > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > span:nth-child(2)", "publicationClosePopupButton": "body > div._2dDPU.vCf6V > button.ckWGn", } webDriver = webdriver.Chrome() link = LinkPdo(session) linkCollection = link.get_all() urlCollection = [] for targetLink in linkCollection: urlCollection.append(targetLink.link) post = PostPdo(session) parserEntity = Parser(webDriver, selectorCollection, post) parserEntity.login("login", "password") for url in urlCollection: parserEntity.get_post_row(url) webDriver.close() # postPdo.one_by_id(2)