Webside name for Django - python

I just began to write some webapplications/websides on python django. I want to know -for later- is it possible to change the server name. I mean currently I have a server with a Ip port/adress and its Offline. My question is;
1) Is it possible to make the webside online on Internet for free or does it cost anythink?
2) Is it possible to get another servername/webadress than my current Ip for free or does it cost anythink?
I hope I asked the questions correctly and Ill be happy if I can get a answer from Community..
Have a good day

You can deploy your website to heroku website it is free hosting, but you need serve static file in another website like AWS S3
Watch this
https://youtu.be/6DI_7Zja8Zc
You can watch all the playlist in this link
https://www.youtube.com/playlist?list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p
It is good explaining
Another solution is :
You can deploy it to Python anywhere but I am not sure if it is free

Related

I cannot open my page with a specific link

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.

How can I upload a video to a specific YouTube channel without using the OAuth URL?

I have a problem that in theory should be easy, but I have been at this for days and just can't get it to work.
I have a Google account to which a few aliases are connected (The main gmail, a test thing I made a long time ago and a youtube channel). I render my videos on a cloud server and would like to then automatically upload them to this channel. I don't want to have to open the URL because this should work unattended. And by god, I can't figure it out. It's pretty baffling in how bad a state Google's official API docs are (or how dumb I am). I am using Python and Google's official client
So far, I've modified the python upload example from the python examples to incorporate service auth as described here. This alone took me way too long to figure out, I think Google's newer key format is bugged. If I run this as is, I get a "youtubeSignupRequired" error, because the main account doesn't have a youtube channel. After hours of research I found this link that pretty poorly describes the onBehalf parameters, but it seems these require a YouTube CMS account, which I don't have and I don't think I will get.
Am I missing something extremely obvious here? This seems like something that should not be hard to do at all.

Scraping site with limited connections

I have a python script, which scrapes some information from some site.
This site has a daily limitation for 20 connections
So, I decided to use module requests with specified "proxies".
After a couple of hours testing different "proxy-list" sites I've found one and I've been parsing from site http://free-proxy-list.net/.
Seems, this site doesn't get the list updated often and after testing my script I've wasted all the proxies and I can't access the site anymore.
All these searches make me exhausted and I feel like my script completely sucks.
Is there any way I can avoid "detecting" me by site or I just need to find another list of proxies? If there are some sites with daily updated and all new list of proxies - please, let me know.
P.S. I often have stumbled upon sites like https://hide.me where I just enter the link and it gives me full access. Maybe I can just code this in Python? If it's possible - show me, please, how.

Creating a URL filter for a proxy in python

I've been working on a small project which requires me to create a proxy with access to only a few sites.
Am using the code from here: https://github.com/labnol/google-proxy
Now, basically am a PHP guy, but haven't found anything as better as the above for setting up a web proxy server.
What I need here is:
A way to filter out URLs. Like I want people to access only the sites I allow.
In the allowed sites, I'd like to block certain scripts. e.g. On wikipedia.org, the person shouldn't be allowed to login.
Am a complete noob in Python. Can anyone suggest me something here, or provide a code snippet which I can use?
Thanks! :)
P.S.: For a PHP version, I've tried using Glype and miniProxy. But not as good as the one I mentioned. They break the CSS/JS of the websites.
You may install Squid and write your own filtering rules.

downloading files to users machine?

I am trying to download mp3 file to users machine without his/her consent while they are listening the song.So, next time they visit that web page they would not have to download same mp3, but palypack from the local file. this will save some bandwidth for me and for them. it something pandora used to do but I really don't know how to.
any ideas?
You can't forcefully download files to a user without his consent. If that was possible you can only imagine what severe security flaw that would be.
You can do one of two things:
count on the browser to cache the media file
serve the media via some 3rd party plugin (Flash, for example)
Don't do this.
Most files are cached anyway.
But if you really want to add this (because users asked for it), make it optional (default off).
I have no experience with this, but you could try your luck with DOM storage in newer browsers:
IE8
FF>=2
Opera > 9.5, as I have read somewhere
Safari and Chrome should implement it, too, I guess
Here's an article by John Resig about that.
However, if questions contain something like 'without the user's knowledge' or 'without the user having to agree', typically the one asking really should reconsider his/her thoughts about the visitors and what is or isn't good for them.
Cheers,

Categories