I'm taking the CS50W course and in project0 the instructions is to make an "I'm Feeling Lucky" button that redirects you to the first page like the original does.

after monitoring urls and http requests google does when the form is submitted i came to this conclusion:

<input value="I'm Feeling Lucky" name="btnI" type="submit" data-ved="0ahUKEwiNm6S0jYLrAhXslnIEHYv2B30QnRsIDg">

and this does work but only when the keyword is a known word for example "Facebook", but if the keyword was something like "lkj" it takes you to the usual google search page and the original google page does take you to the first match when "lkj" is typed

am i missing something here?

  • try removing the data-ved attribute
    – Vsjain
    Mar 30 '21 at 6:25

You must log in to answer this question.

Browse other questions tagged .