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
1 answer

Can't import 3rd party python module

I would like to preface with the fact that I am a coding newbie and all this is very new to me. In fact, this is my first stack overflow question. Anyways I am learning python and am trying to install my first third party module called “pyperclip”…
0
votes
2 answers

Why am i getting a ModuleNotFoundError: No module named 'pyperclip'?

I'm new to python, so apologies in advance if I’m being stupid. I'm having trouble importing the pyperclip module to my script. The following error pops up when i type in import pyperclip. runfile('C:/Users/Pruthvi/Practice.py',…
Pruthvi Amin
  • 75
  • 2
  • 10
0
votes
0 answers

Automate The Boring Stuff - CH7 Strong Password Detection Practce Projects

I am new to coding and python is my first programming language. I am studying with 'Automate the Boring Stuff', and right now I am in CH7- trying to figure out 'Strong Password Detection'…
maasan20
  • 1
  • 1
0
votes
2 answers

Can't import pyperclip after installation of pip3 in Debian Linux

I've installed pip in Debian Linux (I'm using an ARM Chromebook with the Linux beta) sudo apt-get install python3-pip which returns: Reading package lists... Done Building dependency tree Reading state information... Done python3-pip is…
booms
  • 23
  • 5
0
votes
1 answer

Why is this regex greedy and why does the example code repeat forever?

I'm going out of my mind trying to figure this out. Its been 3 days now and I'm about ready to give up. Below code should return a list, without repetition, of all phone numbers and emails on the clipboard. #! python 3 #! Phone number and email…
Shahram
  • 61
  • 1
  • 1
  • 5
0
votes
1 answer

Python programmes dont work while using pyperclip and sys.argv

I am currently working on the Book Automate the Boring Stuff Chapter 9 the Practice Project Extending the Multi-Clipboard. Code: #! python3 # mcb.pyw - Saves and loads peices of text to the clipboard # Usage: py.exe mcb.pyw save - Saves…
0
votes
0 answers

Why can't my regex pick up the phone #s on the web page?

Hey guys so I am building a phone and email extractor using python regex and while it works for the emails, it won't work for the phone numbers. The code for finding phone number matches on the clipboard is below: for groups in…
0
votes
1 answer

Unable to install Pyperclip in Spyder Python 3.7

Unable to install Pyperclip in Spyder Python 3.7. Though pip is installed successfully. I am facing problem with Pyperclip module only. Below is the screenshot
0
votes
0 answers

Python Selenium send_keys() changes text formatting (indentation)

I'm using Selenium to enter data into some textfields. I encountered strange behavior of send_keys(), changing some of the formatting of the string I'm sending. I solved it by using Copy-Paste via Pyperclip instead, which works fine, without…
Eric T
  • 1
  • 1
0
votes
2 answers

Copy Multiple Lines to variable in python using pyperclip

The code i wrote just create a structure and print it in multiple lines How can create a string to contain all the Lines import pyperclip symbol = input('Symbol = ') width = int(input('Width = ')) height = int(input('Height = ')) while height > 0: …
user11676469
0
votes
0 answers

How do I copy text to system clipboard in Python 3

I'm trying to understand how I can get a program to copy a given text to the system clipboard and then be able to paste that text to any other application systemwide. I have designed a GUI with Glade and have a GtkEntry and a Button to copy the…
0
votes
2 answers

How can I copy a dataframe to my clipboard (or workaround) from Google Colaboratory?

I'm building a web scraper for a non-technical user on google colaboratory and want the output of that scraper which is in the form of a pandas dataframe to be "copy pastable" with a single inline command. The execution of df.to_clipboard() results…
Yaakov Bressler
  • 9,056
  • 2
  • 45
  • 69
0
votes
1 answer

pyperclip.copy function gives a lot of unwanted output

I was following along with Al's Automate the boring stuff with python. I'm a relative novice with python and reading the traceback. When I first executed the pyperclip.copy() function I got a huge readout of some stuff that I can't even begin to…
0
votes
0 answers

Unable to use pyperclip and regex to search for a pattern?

While this seems very sketchy, I am doing this for my MGMT288 class, and am trying to create a program that searches for a SSN from a group of copied text. I have very little python background, and am just exploring regex and in extension pyperclip.…
0
votes
2 answers

Is there a way to copy my VS Code Snippet string via Pyperclip

I'm trying to get a Python script that will take code from my clipboard and format it to be a VS Code snippet, finally place it back on my clipboard (via Pyperclip). I want to escape Backslashes (\) Quotes (") I want to replace Actual tabs with…