I cannot open my page with a specific link - python

Hi there I have a website which is hosted by pythonanywhere and the domain is from godaddy. So I have a simple issue I guess but I couldn't find the answer. My domain is www.itucampus.com
Everyone can reach my webpage with the links below:
http://itucampus.com
http://www.itucampus.com
itucampus.com
www.itucampus.com
https://www.itucampus.com
only this does not work -> https://itucampus.com The problem is I need it to be fixed for google adsense because they are trying to crawl my webpage over this link and they said they cannot change it to another. I also contacted godaddy and pythonanywhere if they may help me but they couldn't. I am new to web programming so I am not sure where I have to fix it. I hope you can help me. Thank you in advance.

You need to use an external HTTPS redirection service, e.g. NakedSSL.
You can read more on PythonAnywhere help pages.

Related

Recognize user returning to URL from same device

I'm new to web programming, so I guess my question would seem very stupid :)
I have simple website on Python/Django. There is some url, which users may open without any authentication.
I need to remember this user somehow and recognize him when he re-opens this url once again (not for a long time - say, for several hours).
By "same user" I mean "user uses same browser on same device".
How can I achieve this? Thanks in advance :)
Coookies are your answer. They will work for any URL for the same browser. assuming your user has agreed to use them.
An alternative would be to tag the links with parameters, but that is specific to the link and could be shared with others.

Python Script; Logging into site

I am trying to log into a site,
https://www.telenor.no/privat/minesider/logginnfelles.cms?skin=telenor, with my user credentials. That site then redirects to https://www.telenor.no/privat/minesider/minside/minSide.cms.
I have tried all the different propsed solutions that I have found, but nothing has worked so far.. Is there someone out there that has a solution? Would be greatly appreciated!
Not sure how your attempting to log into the website, but here's an article that shows how it's done in python. Maybe post your code on here so we can get an idea of what's going on.
How can I login to a website with Python?

How to create login client's account with Twitter?

I've created a web application, Now i want to put login authentication using twitter account.
As Stackoverflow include Gmail, Facebook to login into stackoverflow. Similarly i want to make the same thing with my application.
I'm bit confused here, Here is example i found. Please see this.
I found it into URL bar it generates this:
https://twitter.com/oauth/authenticate?oauth_token=VOU5SAAAAAAAASO2AAABUBx3tgE
But i'm finding difficulties to generate my own's application oauth_token. Can you please help me? How to generate it? I googled and searched into twitter everywhere. But none of things worked for me. :(
Please Help me.. HELP WOULD BE APPRECIATED!!

How can i login to stackoverflow site with Scrapy python

I have just started learning scrapy and i want to try some prasing with python and Scrapy.
I am thinking of getting the list of questions from specific tags, which i have posted, and then parse them on SO.
But i am not sure how can i log with open id and Scrapy.
Can some please guide me with this on which url i have to submit the data because when i will type the openid then site gets transfered to openid url so how can i enter password there
Use your RSS feed (basically xml).
One other way I can think of is to:
Login normally in browser
export cookies to file
use that file in script
I can think of a situation where fanatic badge would become less valued. Because, then people would simply schedule cron on their server to visit SO every day! So, I advice not doing anything of this sort.
Here is a good example how to simulate a user login request using scrapy.

Login and upload file at website with python

I'm making a python script that should zip a file and upload it at a site. My problem is I can't figure out how to login into the site to then upload the file in question.
I've searched trough the web but can't make any of the solutions presented online to work, probably because I don't understand most of them (my knowledge of cookies is quite limited).
The site in question is CurseForge. If anyone could point me into the right direction, it would be great.
You can check this variant of httplib2 http://gnu.gabrielfalcao.com/bolacha/#uploading-a-file , it has examples on that page. You can get the code from http://github.com/gabrielfalcao/bolacha/tree/master
I ended up solving the issue using Requests.

Categories