Skip to content

Latest commit

 

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PythonPersonalProject

Introduction

This python repo is to learn to scrape data from a website


Be sure to add that lovely star 😀 and fork it for your own copy


Objectives

  • A first try at learning how to scrape a website using python

Who is this for?

  • It's for anyone who wants to try web scraping in python

Before using this repo fork and clone Link

  • follow the instructions in that particular repo for deployment

Packages/Dependencies used

bs4, requests, pandas, sqlalchemy, psycopg2


Install all the dependencies or python or pip used for development via Terminal

downlaod python from python.org


Things to add

  • add .env file

    • pip freeze > requirements.txt pip freeze outputs the package and its version installed in the current environment in the form of a configuration file that can be used with pip install -r.

    -Create a runtime.txt file to specify the version of python installed for heroku deployment

    • python(your version of python)

    It specifies the python version for all the packages incase there is some descrepency in the packages used

    • Add a Procfile to specify the commands that are executed by the app on startup.

    • You can use a Procfile to declare a variety of process types, including: Your app's web server. Multiple types of worker processes.

    • Deploy the app on heroku following this link

    • Once it is deployed follow these steps to connect to a database

    • To connect python to a node db

      • heroku addons:attach <postgres_instance_name> -a <python_app_name>
    • To run python script

      • heroku ps:scale web=1
    • To check database has data

      • heroku pg:psql <database_url>

      • select * from historical_data(table name)


Checkout the repo PersonalProject} for the next part of the project

Have fun testing and improving it! 😎

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages