Skip to content

nastiapetrovych/Twitter-API-Web-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Creation_of_friends_location_map_application

My website was created on pythonanywhere

1)The second task

1️⃣ The python program is created to help the user navigate in JSON file

2️⃣ My program shows the user the object and available key/index for the next step

                                                    The user has two options here:

🐊 following the instructions of my program

🦕 write "exit" to finish

                                                    The pros of my program are:

♦️ in case of wrong key or index, doesn't crash

♦️ can help you to get the correct value

♦️ works recursively

2)The third task

                                                          Description:

✏️ This web page asks a user to enter a nickname on Twitter without '@'

✏️ As a result, it returns the map of the user's friends' locations

✏️ It can take time to load all locations because I did it without any limits

✏️ It is made with help of [https://www.pythonanywhere.com/] and module flask

                                                          About code:

1️⃣ with my evaluated keys, receive the JSON file with users' locations info with the help of 'hidden.py,' 'twurl.py,' and 'oauth.py'.

2️⃣ read it and convert it to a list of usernames and locations

3️⃣ with geopy, find the coordinates of user twitte2.py.'

4️⃣ create the map with the help of folium 'my_map3.html.'

5️⃣ create an html-file for the web page 'run.html.'

6️⃣ create a CSS file with the description of the image of the website 'style.css'

7️⃣ connect html-file with CSS

8️⃣ create app.py for connecting the frontend to the backend

9️⃣ create the directories: 'templates' for HTML, 'static' for CSS

1️⃣0️⃣ uploading the files and directories to [https://www.pythonanywhere.com/]

                                                          About the web page:

This is a link for my site [http://anastasiiapetrovych.pythonanywhere.com/]

The main page looks like this:

Screenshot from 2022-02-18 20-11-19

Let's create a map of Elon Musk's friends.

Screenshot from 2022-02-18 20-11-41

❗It works without button: You need to push 'enter'

Generating map( a default location is Paris(my soul lives there)

It's done!!!

Screenshot from 2022-02-18 20-17-07

It has a layer which you can switch

Screenshot from 2022-02-18 20-21-32

About

My web site created on pythonanywhere

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors