-
Replied To a Post in Inbox inaccessible
The same for me "InBox" and "Send Message" has not work after change to Dazah. Both give `Rate limit exceeded: Please try your request again in a few minutes.. ` … -
Replied To a Post in Get value from HTML Form
To set it up more,correct and fix error. Capitale letters in `method == 'POST'` Have remove GET to avoid to confusion. foo\ app.py templates\ index.htm `app.py` from flask import Flask,redirect,url_for,request,render_template … -
Liked / Shared Working with mp3 tags
Hi guys. Well according to the research I had, and MP3 file structure is as follows: ` AAAAAAAA AAABBCCD EEEEFFGH IIJJKLMM ` which is refered to as frames, and each. … -
Replied To a Post in how to parse an xml attribute using python
Your pasting of xml is a mess:) The best is to use [Beautiful Soup](https://www.crummy.com/software/BeautifulSoup/bs4/doc/)/lxml. E.g from bs4 import BeautifulSoup xml ='''\ <?xml version="1.0" encoding="UTF-8"?> <note> <to>Hello</to> <from>wold</from> <msg timestamp="20160817 12:46:42.520" … -
Replied To a Post in With Python
> Do you see any possible glues in the error messages as to what might be going on? Not easy to say,Udemy can have a own setup that you should … -
Replied To a Post in Installing pymongo package to paython 3.5
Use wheel as posted bye Gribouillis. PyMongo has C depencies so to avoid this [Installing from source on Windows](https://api.mongodb.com/python/current/installation.html#installing-from-source-on-windows) Go [here](http://www.lfd.uci.edu/~gohlke/pythonlibs/#pymongo),when dowloaded your version. Do e.g **pip install pymongo-3.3.0-cp35-cp35m-win32.whl** Wheel(.whl) … -
Replied To a Post in With Python
No are you mixing stuff up. Do you get Flask running on our local system? `http://127.0.0.1:5000/` is your computer's loopback address(locahost). Do stuff as simple as possible,Virtualenv is ok but … -
Replied To a Post in Python Import error
It's part of standar library,so it should work. Here a run in Python 3.4. >>> from http import cookies >>> a_cooike = cookies.SimpleCookie() >>> a_cooike['Base'] = 'cream' >>> print(a_cooike) Set-Cookie: … -
Replied To a Post in With Python
>I actually like the LAMP stack and I wanted to use Python LAMP make no sense for Python and it use **CGI**. CGI is tankfully totally dead for Python. Python … -
Replied To a Post in Python Import error
It's in [http.cookie](https://docs.python.org/3/library/http.cookies.html) for Python 3.x. So import is `from http import cookies` For all about HTTP use [Requests](http://docs.python-requests.org/en/master/) >>> import requests >>> url = 'http://httpbin.org/cookies' >>> cookies = dict(cookies='are … -
Replied To a Post in With Python
> I like python and I wanted to give it a try at web programming but the setup and management is too difficult. I'll just go back to php. It's … -
Replied To a Post in How to run multiple python file in a folder one after another
> what if I need to take seperate nosetests html report for each file.. How can I do that ? Yes as bash script looping over files will work,or a … -
Replied To a Post in loop through list and exec one line at a time
Command you has to be string and you concatenate "line" inside `os.system()`. So if i have i list of words and want to now lenght of each word, i can … -
Replied To a Post in How to split personal names in python using pandas
The problem can be solved before give data to Pandas. As mention over there are lot of cases to think about. I would have made up rules with regex. Example. … -
Replied To a Post in Assigning values to list of strings
>Is that what gets returned if the letter is not in the dictionary? So if it can't find the letter it adds 0? Yes,and you can also return a more … -
Replied To a Post in trying to get data from a html file
>Beautiful Soup is for python . i am using windows and vb.net You should find a parser for vb.net,like [Html Agility Pack ](http://htmlagilitypack.codeplex.com/) >i have been doing some research. >and … -
Replied To a Post in My simple python program to calculate the volumes of some popular solids
>I just started to learn python few days ago. This is a small program I made to practise. Ok,some points. names = ['(1) Sphere','(2) Right Circular Cone','(3) Cylinder'] x=0 while … -
Replied To a Post in Few Questions about Python?
>I've seen the Full stack python, it also gives you many options to choose & but not how do I choose them Yes it can be confusing,Nginx + Gunicorn,Tornado,uWSGI? Here … -
Replied To a Post in Few Questions about Python?
>In the first question, ctually asking which directory on linux should I choose to place a project? Like /home/user/ or /var/www etc? [Where I should put my python scripts in … -
Replied To a Post in Few Questions about Python?
>Where should I host a python project on linux? I'm sure there'd be multiple choices. So, Where would you host it & on what circumstances? Github,Bitbucket... If you mean web-host,pythonanywhere,Heroku,Webfaction,Digital … -
Replied To a Post in Python Conversion Error
>I am trying to convert a file to a dictionary here is the contents of the file, You can data keep structure bye using serialization, then you don't have to … -
Replied To a Post in Who likes the tagging system?
>Maybe the sticky posts have, or could have a tag of their own. Or just making a [category](http://imageshack.com/a/img907/3306/3EfUyL.jpg) like e.g Staring Python, Starting C++. Then put sticky thread like in … -
Replied To a Post in Having problem Fetching hyperlinks from url due to proxy (i am new to Pyth)
>A must read Or a better [read ](http://docs.python-requests.org/en/latest/user/advanced/#proxies) You should really look into and use [Requests](http://docs.python-requests.org/en/latest/) Shailang. -
Replied To a Post in Who likes the tagging system?
I have to say that i don't like this tagging system at all. Maybe it's get better when i get used to it,but i am not sure. In Python part … -
Replied To a Post in how to send Python code to a Webpage automatically?
>really don't even know which webpage language I should use HTML, PHP, SQL something else?. You can of course use Python. Micro-framework like [Flask](http://flask.pocoo.org) can be a good place to … -
Replied To a Post in Interact with a search engine
If you search for cola you see this url. `https://datacvr.virk.dk/data/visninger?soeg=cola&type=Alle` Generate own search url's. >>> url = 'https://datacvr.virk.dk/data/visninger?soeg={}&type=Alle' >>> search_lst = ['car', 'train'] >>> for item in search_lst: ... print(url.format(item)) … -
Replied To a Post in how to get SRC of img tag
from bs4 import BeautifulSoup import urllib2 html = ''' <img src="smiley.gif" alt="Smiley face" height="42" width="42">''' soup = BeautifulSoup(html) images = soup.find('img') print(images['src']) #smiley.gif -
Replied To a Post in url decoder
It work's for me when i do a little test,using Pyhon 3.4.2. mytxt1.txt: http://ascii.cl?parameter=%22Click+on+%27URL+Decode%27%21%22 login=bob%40%3CSCRipt%3Ealert%28Paros%29%3C%2FscrIPT%3E.parosproxy.org http://ascii.cl?parameter=%22Click+on+%27URL+Decode%27%21%22 login=bob%40%3CSCRipt%3Ealert%28Paros%29%3C%2FscrIPT%3E.parosproxy.org outtxt1.txt: http://ascii.cl?parameter="Click+on+'URL+Decode'!" login=bob@<SCRipt>alert(Paros)</scrIPT>.parosproxy.org http://ascii.cl?parameter="Click+on+'URL+Decode'!" login=bob@<SCRipt>alert(Paros)</scrIPT>.parosproxy.org -
Replied To a Post in decode string
>Also, strings in Python 3 are unicode so enocde and decode are not necessary. That's only true if text is already inside Python 3. Here we are talking about taking … -
Replied To a Post in How to Generate Licence Key
Python do have build in libraries that can generate key which hold cryptographic strength. Her use [SHA-256](https://en.wikipedia.org/wiki/SHA-2) >>> import hashlib >>> hashlib.sha256(b"licence key").hexdigest() 'ad26f374a671d9add68a110b31769667691a54ed599e791b5c8eb065b16c9ddc' Will also metion [cryptography](https://github.com/pyca/cryptography) which is … -
Replied To a Post in How to print text in UTF_8 (letters are reversed)
The most Pythonic `[::-1]` There is also reversed used with join(). Python34 handels Unicode good if you get Persian language correct decoded into Python34. In Python34 *are all strings a … -
Replied To a Post in Need help with a loop for my Sentence word and Character counter program
Here is a hint. >>> user_input = 'The quick brown fox jumps over a lazy dog' >>> word_lst = user_input.split() >>> word_lst ['The', 'quick', 'brown', 'fox', 'jumps', 'over', 'a', 'lazy', … -
Replied To a Post in Write a function need help.
>snippsat I understand the inputting it into a gui or >>> but I need it to take any user input and not just set filename. Unless I set filename to … -
Replied To a Post in Write a function need help.
wudie47 read your [post](https://www.daniweb.com/software-development/python/threads/497089/file-name-as-a-string-parameter),just 1 day old, vegaseat did answer with the preferred way `os.path.splitext()`. >>> import os >>> filename = 'python.exe' >>> os.path.splitext(filename) ('python', '.exe') >>> os.path.splitext(filename)[-1] '.exe' >>> … -
Replied To a Post in python pydev raspberryPi
Need to see code to,and not just Traceback. Do `print(ser)` and `print(type(ser))`,then i think you see that's `ser` is an integer and not a fileobject. To create same Traceback. >>> … -
Replied To a Post in Python implementations of markdown parsers that can produce HTML
There is also a [markdown2](https://github.com/trentm/python-markdown2) module. import markdown2 markdown = """\ # Hello, how are you I'm fine, thank you I know that it is not so **hard** but for … -
Replied To a Post in Need help in python snippet
A good technique to understand code is to break it up in smaller parts. For this is interactive interpreter great to us, also us `print()` in code on places you … -
Replied To a Post in Help, please... to install Python... Again.
lxml need to be compiled,and for Python3.4 you most have Visual Studio C++ 2010(Windows). But there is an easier way,go to [Gohlke](http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml) pre-compiled wheel. Download `lxml‑3.4.4‑cp34‑none‑win32.whl` place it in `C:\python34\Scripts` … -
Replied To a Post in How to install modules?
>OK,... I know that my hired programmer does his development with Linux and/or Macos. >And apparently... those Parentheses are NOT need there, but they ARE needed in Windows? >Is that … -
Replied To a Post in Pseudo Switch in Python
>I, and many others, desired a "switch" keyword in Python. Do not speak for "others". The swith/Case statement was finally rejected in 2006 [PEP 3103](https://www.python.org/dev/peps/pep-3103/) >For me it was to … -
Replied To a Post in How to install modules?
>I installed Python v 3.4.3 pip comes pre-installed on Python 3.4.3,do **not** install pip. First set up [environment Variables Path](https://vimeo.com/70504477), Same as in video,but also point to script folder(pip placement),so … -
Replied To a Post in iteritems() error
It's a little old way of doing this,but it work if fixing as Girb posted. You should not make a seperate line for count. Do it like this. my_dict = … -
Replied To a Post in Random HTML CSS Hex Color Picker
Good effort,i give you a up vote:) But have to mention your code style again,it's not so pretty. I link to [PEP-8](https://www.python.org/dev/peps/pep-0008/) in your post, just to show a doc … -
Replied To a Post in PyQt4 Win32 wheel (.whl) works on linux, but not windows
Done a little more testing. Here from wheel [doc](https://wheel.readthedocs.org/en/latest/) >Many packages will be properly installed with only the “Unpack” step (simply extracting the file onto sys.path), and the unpacked archive … -
Replied To a Post in PyQt4 Win32 wheel (.whl) works on linux, but not windows
>no, I've built an exe using GameMaker8 (has an icon and loading banner) which >boots Portable Python with python.exe loader.py As usually i think you are doing some strange stuff:) … -
Replied To a Post in PyQt4 Win32 wheel (.whl) works on linux, but not windows
>I got the wheel so I wouldn't have to install Wheel has to installed,also same with older format egg. >(you don't need to install python to run my (not compiled) … -
Replied To a Post in PyQt4 Win32 wheel (.whl) works on linux, but not windows
You have to install [wheel](http://pythonwheels.com/) with `pip`. On Python 2.7.9 is pip pre-installed. Put `PyQt4-4.11.3-cp27-none-win32.whl` in `C:\Python27\scripts` folder. Start *cmd* navigate to `C:\Python27\scripts` folder, then do: `pip install PyQt4-4.11.3-cp27-none-win32.whl` -
Replied To a Post in Getting Error While Scraping Proxies Page
Also [here](http://www.python-forum.org/viewtopic.php?f=6&t=15584):) -
Gave Reputation to EMERSON_1 in Base Conversion Module
Mybe you should visit it: http://python3-dicas.blogspot.com/ It has a lot of tips about Python's value conversion. ;-) -
Replied To a Post in POST method in HTTP
Or a more modern [click here](http://docs.python-requests.org/en/latest/) :)
The End.