ManiMozaffar / linkedIn-scraper

A playwright bot which is implemented to scrape linkedin and store advertisement data in a database and telegram channel
212 stars 22 forks source link

Improvements to FastAPI Server Setup #1

Closed amirhomayooon closed 1 year ago

amirhomayooon commented 1 year ago

This code demonstrates improvements to the setup of a FastAPI server, including separating the run functionality into its own function, removing unnecessary commented-out code, using a configuration object consistently throughout the code, and implementing logging for error handling. These changes result in a more organized and maintainable server setup.

ManiMozaffar commented 1 year ago

Thanks