Good afternoon, I'm currently attempting to retrieve the following field of a certain instagram profile (the profile's name [not the username] as shown below the username.
Therefore, I'm looking for the code to get the field: "yereni028k" (the profile's name, that is). I do have the following code to retrieve the other data in the profile:
posts = wait.until(EC.presence_of_element_located((By.XPATH, '//li/span[text()=" posts"]/span'))).text
followers = wait.until(EC.presence_of_element_located((By.XPATH, '//li/a[text()=" followers"]/span'))).text
following = wait.until(EC.presence_of_element_located((By.XPATH, '//li/a[text()=" following"]/span'))).text
name = ( ..... ) #profile's name
Thanks for all your help.