Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,953
» Latest member: bianchiluca116
» Forum threads: 38,726
» Forum posts: 175,521

Full Statistics

Online Users
There are currently 35 online users.
» 0 Member(s) | 30 Guest(s)
Bing, Google, Mojeek, AOL, AOL

Latest Threads
how to export a dictionar...
Forum: GUI
Last Post: RonR
39 minutes ago
» Replies: 0
» Views: 29
pip install requests does...
Forum: General Coding Help
Last Post: DeaD_EyE
7 hours ago
» Replies: 10
» Views: 29,248
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:00 PM
» Replies: 4
» Views: 9,355
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
Yesterday, 09:08 AM
» Replies: 0
» Views: 224
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
Yesterday, 03:29 AM
» Replies: 2
» Views: 663
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
Yesterday, 02:36 AM
» Replies: 0
» Views: 250
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Sep-22-2025, 08:56 PM
» Replies: 9
» Views: 835
403 error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 5,097
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,331
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,697

 
  Do you require imports used in other files?
Posted by: Panda - Jul-14-2018, 02:12 PM - Forum: General Coding Help - Replies (1)

Here is a snippet of code from two files:

# FileA.py
import time
def test():
    time.sleep(1)
    print("Hello")
[python]# F..... More

Print this item

  Beautiful Soup - Title + Paragraph into a text file
Posted by: dj99 - Jul-14-2018, 10:52 AM - Forum: Web Scraping & Web Development - Replies (4)

Hi all,



I am trying to extract a heading and a title, there is something not quite right about this



[python]
from bs4 import BeautifulS..... More

Print this item

  Converting web server from python 2 to python 3
Posted by: floatingshed - Jul-14-2018, 07:49 AM - Forum: Networking - Replies (5)

I have been using this script, found online not my work!

In python2 it works perfectly, but in python3 (using 2to3) we get the "a bytes-like object..... More

Print this item

  Mac Terminal
Posted by: iamcstevenson - Jul-14-2018, 04:10 AM - Forum: General Coding Help - Replies (2)

I'm using a Udemy tutorial to learn Python3. From my Mac Terminal, I start Python3 but continue to get NameErrors when trying to do something simple ..... More

Print this item

  Ubuntu repositories
Posted by: Skaperen - Jul-14-2018, 03:31 AM - Forum: Bar - No Replies

anyone know of alternate repositories for Ubuntu that would include (or at least soon include) packages for Python 3.7?

yeah, i downloaded the sour..... More

Print this item

  cgi script help
Posted by: xiayao - Jul-14-2018, 03:20 AM - Forum: General Coding Help - Replies (7)

i follow the python guide to write a html and cgi script as follow in pyCharm on a macbook,however,i got 404 error after i click submit

the html
..... More

Print this item

  0 error but Not printed
Posted by: Piqurs - Jul-14-2018, 03:10 AM - Forum: General Coding Help - Replies (5)

So I'm having this trouble. The code has no mistake but when I try, no result


[python]
#deklarasi kelas kata
KATA_GANTI_1 = ['aku', 'mereka'..... More

Print this item

  module attributes
Posted by: Skaperen - Jul-14-2018, 12:53 AM - Forum: General Coding Help - Replies (1)

instructions for the botocore module make reference to using botocore.session. when i do [icode]import botocore.session..... More

Print this item

  Importing Modules Have Stopped Working.
Posted by: Randomname - Jul-14-2018, 12:35 AM - Forum: Data Science - Replies (6)

Hi All,

I had a script which I use to scrape a website, which has been working reliably for months. I installed TensorFlow just over a week ago, an..... More

Print this item

  [Open-Source Project] Need help?
Posted by: gontajones - Jul-13-2018, 10:27 PM - Forum: Jobs - Replies (5)

Hi everybody!
I'm looking for some nice open-source project to be a part of.
I really like to help the python community as a "give back" thing, once..... More

Print this item

  calling a function in a comprehension
Posted by: Skaperen - Jul-13-2018, 08:46 PM - Forum: General Coding Help - Replies (1)

is there any chance foo() could be called more than once or is it well defined to be exactly once in this or any other comprehension construct?[python..... More

Print this item

  Internet radio script
Posted by: ahim - Jul-13-2018, 07:45 PM - Forum: General Coding Help - Replies (3)

Halo to all you good people.
I got a raspberry pi Zero and i am trying to make an internet radio, following a tutorial but i am stuck with the python..... More

Print this item

  Reading email messages on Outlook
Posted by: johnjohn - Jul-13-2018, 07:03 PM - Forum: General Coding Help - Replies (9)

I am writing a python code to read emails on Microsoft Outlook, looking for files attached (any file *.msg), read these .msg files and grab any URL co..... More

Print this item

  Proxy Variable in Selenium wont work with FireFox Profile Proxy Setting.
Posted by: MIPython - Jul-13-2018, 05:43 PM - Forum: Web Scraping & Web Development - No Replies

edited for clarity:
Python Selenium Passing Scraped Proxy .text object Variable to Firefox Profile? I can get the proxy working with a string as the p..... More

Print this item

  lxml missing libxml2, libxslt
Posted by: cawtx - Jul-13-2018, 04:56 PM - Forum: General Coding Help - Replies (3)

Recently installed Python 3.7 on Windows 10, personal computer.
How do i install libxml2 and libxslt?

Tried to install lxml using pip, which failed b..... More

Print this item

  Problem with variables
Posted by: Steffenwolt - Jul-13-2018, 03:11 PM - Forum: General Coding Help - Replies (4)

>Hi All,
I am trying to build a function to write text to a 20X4 LCD.
I have imported the appropriate driver and defined the name of the lcd.
[pyth..... More

Print this item

  Getting error while accessing input box
Posted by: sumandas89 - Jul-13-2018, 12:22 PM - Forum: Web Scraping & Web Development - No Replies

I wrote a code like below -
[python]driver.find_element_by_xpath('/html/body/div[4]/div[2]/div/div[2]/div[2]/div/ul/li[2]/a').click()
'''Entering Th..... More

Print this item

  Tutorial recommendation
Posted by: FlatAssembler - Jul-13-2018, 11:25 AM - Forum: News and Discussions - Replies (1)

Hi there! New here!
So, I would like to learn some Python. The programming language I know best right now is JavaScript. The most complicated things ..... More

Print this item

  List processing speed
Posted by: Brettr - Jul-13-2018, 09:15 AM - Forum: Data Science - Replies (2)

Hi,
I'm working through the Numpy chapter of Python Data Science Handbook. To show how slow array processing they give an example that takes 2.91s to..... More

Print this item

  MySQL INSERT Problem
Posted by: gw1500se - Jul-13-2018, 08:40 AM - Forum: General Coding Help - Replies (5)

I am trying to insert a row into a table with this code:
[python]
query="INSERT INTO Members VALUE ('"+args["first"].value+"','"+args["last"].value+..... More

Print this item

  Download entire web pages and save them as html file with urllib.request
Posted by: fyec - Jul-13-2018, 07:34 AM - Forum: General Coding Help - Replies (2)

I can save multiple web pages with using these codes; however, I cant see a proper website view after saving them as html. For example, the texts in t..... More

Print this item

  getting started, again
Posted by: bluedoor5 - Jul-13-2018, 05:32 AM - Forum: Web Scraping & Web Development - Replies (19)

Ok, following on from my intro post/s, as suggested to try the following
[quote]Welcome bluedoor5.
We have several tutorial on this forum that is up..... More

Print this item

  Flask Essentials – Handling 400 and 404 requests in Flask REST API
Posted by: bhishan - Jul-13-2018, 05:02 AM - Forum: Tutorial Requests and Submissions - No Replies

http://www.thetaranights.com/flask-essen...-rest-api/

Print this item

  coupon clipper
Posted by: metulburr - Jul-13-2018, 02:08 AM - Forum: Code sharing - Replies (1)

https://github.com/metulburr/DG_coupon_auto_clipper

Dollar General expects people to manually clip each coupon on their website. They also put a co..... More

Print this item

  Guido on Permanent Vacation from BDFL
Posted by: ichabod801 - Jul-13-2018, 01:55 AM - Forum: News and Discussions - Replies (24)

python.org/msg05628.html" target="_blank" rel="noopener" class="mycode_url">https://www.mail-archive.com/python-comm...05628.html

Print this item

  Result is doutfull- fuzzywuzzy process.extract method
Posted by: klllmmm - Jul-13-2018, 01:38 AM - Forum: Data Science - No Replies

I tried this on small test dataset. I wondering why a particular choice word(ie. "mango 2" is not shown in fuzzy match result. It may be due to an err..... More

Print this item

  Why is this giving me an infinite loop?
Posted by: wlsa - Jul-13-2018, 12:23 AM - Forum: Homework - Replies (4)

[python]def gcdIter(a, b):
'''
a, b: positive integers

returns: a positive integer, the greatest common divisor of a & b.
'''
..... More

Print this item

  issue with numpy.savetxt
Posted by: alyssaantarctica - Jul-12-2018, 10:09 PM - Forum: Data Science - Replies (1)

I'm trying to save the following in a txt file:

relmax = [ 6.9251146   7.23467703 10.5914501 ]
[python]relmin = [ 7.10074018 8..... More

Print this item

  checkmarx python
Posted by: saisankalpj - Jul-12-2018, 06:23 PM - Forum: General Coding Help - Replies (4)

while running checkmarx in python i am get vulnerabilities of level-HIGH from inbuilt libraries which i did
install with pip.so how should i avoid ..... More

Print this item

  How are these Employee objects stored?
Posted by: Vysero - Jul-12-2018, 04:16 PM - Forum: General Coding Help - Replies (2)

I have a very simple program to create Employee objects:

[python]class Employee:

def __init__(self, id, salary):
self.id = id
self.s..... More

Print this item

  loop function when called from tkinter button click
Posted by: WantedStarling - Jul-12-2018, 03:34 PM - Forum: GUI - Replies (5)

Hello, I have this code:

[python]#python 2.7.15

import pyautogui
import time
import msvcrt
from threading import Thread
import win32api
import battl..... More

Print this item

  Beautiful Soup - Delete All HTML - Except Specific Classes
Posted by: dj99 - Jul-12-2018, 03:28 PM - Forum: Web Scraping & Web Development - Replies (7)

Hi all,

I have been looking everyhwere for this concept.

I wanted to delete all html except for the classes. I have listed
The idea is below. T..... More

Print this item

  Find number in a text for if statement
Posted by: BitbyBit - Jul-12-2018, 03:05 PM - Forum: General Coding Help - Replies (3)

Hi, I have been struggeling to make an if statement based on the condition that a certain number is inside a text.

Text:
{'timestamp': 15314007793..... More

Print this item

  Getting error when accessing elements in a modal window of an webpage using selenium
Posted by: sumandas89 - Jul-12-2018, 02:04 PM - Forum: Web Scraping & Web Development - Replies (3)

I am writing python code to access elements in a modal dialog box of a webpage. After clicking in a link the modal dialog box appears till this point ..... More

Print this item

  Unable to print the exact Float values when I convert LIST to Sequence of Tuples?
Posted by: preethamalluri - Jul-12-2018, 09:01 AM - Forum: General Coding Help - Replies (1)

Hi, Smile I have the following LIST in python, I am trying to convert it from this format to SEQUENCE OF TUPLES. I am able to convert it into a t..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] how to export a... 39 minutes ago RonR RonR GUI
  pip install requests does... 7 hours ago misodca DeaD_EyE General Codin...
  Creating a Mindmap progra... Yesterday, 12:00 J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... Yesterday, 09:08 compuman145 compuman145 General Codin...
  A coding beginner needs h... Yesterday, 03:29 Littlefish Littlefish General Codin...
  Is the interpreter that c... Yesterday, 02:36 helendamdam helendamdam General Codin...
  Using a For Loop to subtr... 09-22, 20:56 Anunderling deanhystad General Codin...
  403 error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
Most views
  The best Prog... 576816
  Tutorial Requ... 499227
  Web Scraping ... 440603
  Newbie with P... 384578
  New Users Int... 368466
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12088
buran 8176
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
bianchiluca116 Today
Jorgecog Today
adamsmith12 Today
Ronny Today
Luciana Today

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020