<button class="btn" type="BUTTON" onclick="self.location='/s/10572453/57/Alias'">Next ></button>
how do you follow a button link, like above?
In the command prompt I get this result:
* Retrieving (GET): https://www.fanfiction.net/s/10572453/57/Alias * Processing: https://www.fanfiction.net/s/10572453/57/Alias * Retrieving (): https://www.fanfiction.net/s/10572453/57/Next > * Processing: https://www.fanfiction.net/s/10572453/57/Next%20%3E
the second retrieving should have 58 in the link and the get request is missing..
I tried this css selector in the command prompt
-f "css('#content_wrapper_inner > span:nth-child(7) > button:last-child')"
Anonymous
You seem to have CSS turned off. Please don't fill out this field.
I don't normally use CSS expressions (Benito would have to answer that), but an XPath expression on Linux would be:
xidel "https://www.fanfiction.net/s/10572453/57/Alias" -f '//span/button[starts-with(.,"Next")]/extract(@onClick,"'\''(.+)'\''",1)' -e '$url' **** Retrieving (GET): https://www.fanfiction.net/s/10572453/57/Alias **** **** Processing: https://www.fanfiction.net/s/10572453/57/Alias **** **** Retrieving (): https://www.fanfiction.net/s/10572453/58/Alias **** **** Processing: https://www.fanfiction.net/s/10572453/58/Alias **** https://www.fanfiction.net/s/10572453/58/Alias
On Windows that would be:
xidel "https://www.fanfiction.net/s/10572453/57/Alias" -f "//span/button[starts-with(.,'Next')]/extract(@onClick,'''(.+)''',1)" -e "$url"
<button class="btn" type="BUTTON" onclick="self.location='/s/10572453/57/Alias'">Next ></button>
how do you follow a button link, like above?
In the command prompt I get this result:
* Retrieving (GET): https://www.fanfiction.net/s/10572453/57/Alias
* Processing: https://www.fanfiction.net/s/10572453/57/Alias
* Retrieving (): https://www.fanfiction.net/s/10572453/57/Next >
* Processing: https://www.fanfiction.net/s/10572453/57/Next%20%3E
the second retrieving should have 58 in the link and the get request is missing..
I tried this css selector in the command prompt
-f "css('#content_wrapper_inner > span:nth-child(7) > button:last-child')"
I don't normally use CSS expressions (Benito would have to answer that), but an XPath expression on Linux would be:
On Windows that would be: