I’m trying get the list of texts from the filter area using Screaming Frog. What is the XPath I should use? Sorry, I’m not good at XPath. :(
Thanks in advance for any help.
[edited by: engine at 9:15 am (utc) on Feb 6, 2020]
[edited by: Seologist at 9:16 am (utc) on Feb 6, 2020]
[edited by: not2easy at 3:41 pm (utc) on Feb 6, 2020] [edit reason] Please see ToS [webmasterworld.com] [/edit]
tangor
9:02 am on Feb 6, 2020 (gmt 0)
Just curious ... since when as a .png been a path? Confused.
tangor
9:46 am on Feb 6, 2020 (gmt 0)
Took a look ... so this is a scraping question? Otherwise, just click through and get the info (if that is what you are seeking). Otherwise, the page already has the LIST and standard copy and paste gets it done.
While I don't condone it, Xenu might be useful...
Seologist
10:17 am on Feb 6, 2020 (gmt 0)
I need the list of many pages on that website not just one page. That's why I need the xpath. With Xenu i would still need the xpath. It's my website btw so there's nothing unethical about it.
not2easy
4:05 pm on Feb 6, 2020 (gmt 0)
If you use FTP Client FileZilla, you can just connect to the server, highlight and copy a list of files on the server and paste them into a text file, that will give you the path for all files in any directory.
Seologist
4:14 pm on Feb 6, 2020 (gmt 0)
Thank you but that's not what I want. I just need the XPath.
NickMNS
4:38 pm on Feb 6, 2020 (gmt 0)
I just need the XPath.
This statement doesn't really make sense. XPath is not a scripting language, it is simply a means of selecting items from within the DOM. The exact syntax will depend on, one the scripting language (or software) you are using, and the specific HTML/CSS markup of the items you would like to select.
Here is an example of an X-Path selector
"[//input[@value='Search']"
This will select one or all "inputs" that have a value of "Search". This is incomplete as it doesn't show the script command used eg: (pseudo code) select_element_by_xpath(). Now this simply selects the elem(s), but doesn't do anything with it. Is your question asking how to formulate the syntax to be able to select a specific element? If so then you need to provide a sample of only the relevant code, without providing the specifics of your website. And, if it is then I would also say that there a typically much simpler means of selecting items, like selecting them by class or ID directly. Again all this depends on the scripting language/API your are using.
Seologist
5:09 pm on Feb 6, 2020 (gmt 0)
Thanks for your reply. My first message actually had the URL of the webpage I wanted to extract the data, but apparently it has been deleted due to TOS.
NickMNS
5:26 pm on Feb 6, 2020 (gmt 0)
but apparently it has been deleted due to TOS.
Yes that is correct. The idea being that questions asked in the forum should be useful to many people not simply provide a specific answer to a very specific use case. We are not consultants that work for free, we are webmasters like you that together provide answers that we hope will benefit the community as a whole. We each share a bit of our knowledge and together, incrementally create a resource that benefits everyone in the community, from first time posters to the old timers.
Copy and paste the relevant code and we will see if we can provide a response that will help you and anyone else that maybe in a similar situation.
Also note, that posting specifics about your website can be security risk as you could be exposing vulnerabilities to hackers or competitors without realizing it.