Home > Mobile >  How to find a link that provides a text for an element generated by Javascript?
How to find a link that provides a text for an element generated by Javascript?

Time:11-23

There is should be like this

step3: Lets take the generated word, in this case "Hypnotisch", and search it

Conclusion: I was able to find a words.txt with all the list of words, that also containes "Hypnotisch"

Result

The specific API that is called to get the txt file is : https://capitalizemytitle.com/wp-content/tools/random-word/de/words.txt

Open this link in new tab to get the list of words,

This is how I believe a professional front-end will find the data. Cheers!

CodePudding user response:

If you mean a manual way. It really depends on the backend architecture

  1. if it is a server-side language ( PHP for example ) and the word is already rendered by the server you can't know because it comes with the get request.
  2. If you are sure that they use APIs ( headless projects ) to generate the word. You can find the request they use using the browser inspector -> Network tab -> filter with XHR requests -> then you will find the generated word in the Response of one of those Requests. I tried to do this with your website but the incoming requests are massive like really massive so I can't find it but this is not the usual case with other websites.
  • Related