Questions tagged [pyperclip]

A cross-platform clipboard module for Python.

Pyperclip is a cross-platform Python module for copy and paste clipboard functions. It works with Python 2 and 3.

More information:

191 questions
0
votes
0 answers

Tkinter: Output text box contents with newline ending

I am trying to create a program that I can input notes for work and output to a text file and copy to clipboard to post into a notes template. When I run this program the text box input(entry4) is copied to the clipboard in a single line.…
-1
votes
1 answer

Obtain data from clipboard using python

I am looking forward to copy data from a website to clipboard and pasting it into the Google sheet using python. Is there anyway to do that? I am not using web scraping since the website does not allow scraping, but it does allow to copy data to…
Anvita
  • 1
  • 1
-1
votes
1 answer

VS code pyperclip Import "pyperclip" could not be resolved

I am trying to use pyperclip for a python course I am doing and it tells me to import pyperclip, but when I import it VS code says Import "pyperclip" could not be resolved even though I went into the terminal and installed it my python version is…
muzeD1
  • 11
  • 3
-1
votes
2 answers

Error in python3 (TypeError: 'module' object is not callable)

Im new to programming and im trying to make a simple program to replace something i copied with a string when its more than 10 characters long, this is the code: import pyperclip import tkinter as Tk while True: r = Tk() r.withdraw() try: …
jfql
  • 1
  • 1
-1
votes
1 answer

Regex phone and email extraction output error - python

The following program is used to extract phone number and email from the clipboard. The problem is whenever I copy something and run this code it gives the output as shown below: Here is my code: import…
-1
votes
1 answer

How am i supposed to give input to pyperclip running in terminal?

I am reading Automate the boring stuff with python and when I am running the program in the terminal it is not prompting for a input. I want to give many lines as input. How can I do this?
-1
votes
2 answers

Python modules not working in IDLE

Working on Automate The Boring Stuff project and having trouble with pyperclip and IDLE. pyperclip is successfully downloaded and works fine in Terminal but when I import pyperclip in IDLE, I get the below error. UPDATE - This is happening with…
-1
votes
1 answer

Using webbrowser module to use Google Maps

i'm just new to python and i want to ask a simple question. what's the difference between using this code: import webbrowser, pyperclip, sys chrome = "C:/Program Files/Google/Chrome/Application/chrome.exe %s" def…
Lucifer1002
  • 59
  • 1
  • 1
  • 5
-1
votes
1 answer

Change string to lowercase except for first character and copy to clipboard

I want to write simple lambda or function that takes a string, changes to lowercase except for the first case and copies the result to clipboard in Linux. I have lambda: to_lower = lambda s : s[0].upper() + s[1:].lower() This is ok:…
-3
votes
1 answer

How do I install pyperclip on python? I have version 3.11.4 and I'm using Windows 11

so I am making my way through the "Automate the Boring Stuff with Python" course on Udemy. I'm on lesson 8 right now. In lesson 8, the instructor just very quickly downloads pyperclip without explaining what or how he is doing it. How do I install…
Timothy
  • 1
  • 1
-3
votes
1 answer

Mac OS X 10.6/python/pyperclip

I'm trying to pick up python via Al Sweigart's book Automate the Boring Stuff and have ran into an issue getting pyperclip to properly install, or even pip for that matter on my machine running OS X 10.6. How do I know pip is installed? I ran the…
cmcgrath
  • 77
  • 1
  • 5
1 2 3
12
13