sumanth-0 / 100LinesOfPythonCode

Write any interesting piece of python code below 100 lines
MIT License
24 stars 58 forks source link

Created Simple Career Personality Test #513

Closed Bhagy3sh closed 3 weeks ago

Bhagy3sh commented 3 weeks ago

Overview

This script provides a "Career Inspiration Test" that dynamically suggests career paths based on user input. It leverages the SERP (Search Engine Results Page) API to retrieve career-related information from Google, filtering out ad or sponsored content to provide only relevant search results. The program begins by loading environment variables, particularly the SERP API key, and prompts the user with three questions about their interests, skills, and preferred work style. Using these inputs, it constructs a search query, fetches results from the SERP API, and displays a filtered list of career suggestions.

fetch_career_suggestions(query)

career_test()

Demo

{FC843454-DB9D-4E32-8C0F-528FF9B42372}