login to website and fetch data - google-apps-script

I am trying to retrieve the data from a website after the script successfully logs in. I am able to fetch the data from the website but it seems it just giving me the information from the website prior to the website of the login. Any help would be really appreciated

If you are trying to create a software to fetch data of a site after login, you might have to handle sessions and cookies as that's how a site knows a user if logged in or not.

Related

Flask - Retrieve Steam ID

I'm working on a Flask project and would like users to be able to connect one or more Steam accounts to their profile on the website. The user is not logging into my website with their Steam account, they are just registering a Steam account to a pre-existing profile on my site, so I'm not sure if I should be using OpenID or not.
I would like for there to be some way for the user to enter their Steam username, be shown a corresponding account, and register the account to their profile. Or alternatively, there is a button that takes the user to a Steam Login page, which redirects back to my website after logging in and passing back the needed data. I'm not picky how, I just need to somehow get the ID associated with a Steam account.
Everything I've found so far has been for logging into a website using a Steam account. I assume the process would be similar, and maybe easier, to just get back an ID based on user input, but so far I've had no luck.
Thanks for your help

Is it good idea to authenticate every page of my website?

I am currently using JSON Web Token to authenticate every page of my website except homepage. The idea is to generate token on login/registration with the user's MongoDB id and save that into cookies. Then whenever user tries to open any page, first token will be decoded and then id will be matched with the database records to verify that the correct user is trying to access page.
I haven't launched the website yet. My question is, is it a good practice to access database before every page loads for user or will it slow down my website once more users start coming on website?

How to sync Firebase social login user data with MySQL database?

I have a website which has a MySQL database and users are able to login to website using social media. Website allows its users to create their own quotes and list them on the website.
I am creating a mobile app for this website using Flutter. I am using Firebase Authentication for social login (Google and Facebook).
What I want to do now is fetch those quotes which user created on website and show on app and also push his quotes which he created in app to the website so that there is a sync of user data.
I've tried looking on internet but I can't seem to figure out how to achieve this.
I thought of two ways:
1) New users registered in Firebase, which are not in the website's database gets inserted in website's MySQL --> I don't know how to do this.
2) I leave Firebase as it is and just hit MySQL with this email which i get during Firebase authentication and fetch/push those quotes but this problem might lead to some sync issues.

How to create a custom user login account page where user can upload papers that stores in mysql database?

Suppose i've already made a Dynamic page using sessions in servlet that generates a user login page and in that account if User has uploaded paper in his own account, after he logs in again , that should be there already.
How can we stored image in database, and how can we transfer image to another account also known to be reviewer that gets to be review the paper uploaded by user
in his account.
How can this be possible, Anyone please help me, Because i have no idea, i am studying Servlets right now. Please Help. Thanks

Update a website that already published and always have online users?

I am going to develop an asp.net website. My problem is think that now my site is published on the internet. 100 Users are already logged to my website. And they opened customer registration form in the website. So we know that when user log to a website he is sending a get request for the specific page. Then the server is sending that page in HTML format and it destroy the page from the server side.
So think that after server sent the customer registration form to the user I am going to do a update to my website. What I am doing is removing some input fields from the customer registration form. So imagine that at the user's end he can see 10 textboxes but my updated version will only contain 5 textboxes. So now what? What is going to happen? Is this lead to an error?
I just took a small example. Think that this situation occur in the middle of a transaction.
What is the scenario that use to update a website that already published and always have online users?.
Just Recycle the Application pool, this will make a new request for the online users. Like a fresh start.