I have been working on this project in java I made for myself in order to improve my java programing abilities.
The project is supposed to read a list of first names from a file one at a time, then go to facebook enter the name, see what the first result is under the suggested people thing (like when you type a name in, without hitting enter it shows you a few people) and gets the name and saves it.
Point it so basically see what the suggest people for each name are just to practice coding.
The problem I have with this is atm I have it doing it by hand, using a the robot option in java. This is horrible coding and terribly inefficient and slow.
I am unsure how to read the source code from facebook though because
a) you need to be logged in to use the search option that has suggested people, meaning I would need to somehow pass cookies to it
b) the form data for the search would need to be filled in before the source code updates, since the drop down menu doesn't apear suggesting people untill the name is typed in.
Is there anyone who can give a code example of either a or b? How to pass cookies and read source code or how to enter form data and then get updated source good. I have been struggling with this for a long time now and can't find anything.
Thank you very much
Aucun commentaire:
Enregistrer un commentaire