Python Forum
Confused on how to go about writing this or doing this...
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Confused on how to go about writing this or doing this...
#1
Currently we have a Google Forms that people fill out with (NAME), (ADDRESS), and (CITY, STATE, ZIP CODE)

It automatically goes to 3 cells in google sheets that are next to each other. We then have to manually copy and paste each part of mailing address and then open Google Docs and paste it like this on a label:

NAME
ADDRESS
CITY, STATE ZIP

And with 100s of these a week, it just takes a lot of my time up.

Ideal Way: I want to create a program that will automatically take the google forms data and have it go onto Google Docs and create labels. Then I can just hit print. I am not sure if this is possible? This would be absolutely ideal.

If not, I would make google forms get 3 sets of input (NAME), (ADDRESS), (CITY, STATE ZIP) and then put it into 1 cell but put each one on a different line (all in 1 cell) so I can easily just copy and paste into on a label.

How would I set up this python program to run and do this for me? Can we do the ideal way?
Reply
#2
You should be able to use selenium to control the browser to automate the process.

It would be easier if we had the google doc with the required fields.

This is the basic concept:
https://python-forum.io/Thread-Web-Scraping-part-1
https://python-forum.io/Thread-Web-scraping-part-2
Recommended Tutorials:
Reply
#3
I have a general idea...

Can we get the program to go something from this (just random data I made up and put onto Google Sheets):

https://ibb.co/DYDXR8k

to something like this:

https://ibb.co/XyR4RVk

We could do this through Python and Google API? Or is this not possible? Or too difficult?
Reply
#4
(Feb-10-2020, 07:00 AM)pythonforumuser Wrote: We could do this through Python and Google API? Or is this not possible? Or too difficult?
Look at API Python usage for Docs and Sheets.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  String int confused janeik 7 1,016 Aug-02-2023, 01:26 AM
Last Post: deanhystad
  I am confused with the key and value thing james1019 3 912 Feb-22-2023, 10:43 PM
Last Post: deanhystad
  Pandas confused DPaul 6 2,466 Sep-19-2021, 06:45 AM
Last Post: DPaul
  is and '==' i'm confused hshivaraj 6 2,625 Sep-15-2021, 09:45 AM
Last Post: snippsat
  Confused with 'flags' tester_V 10 4,783 Apr-12-2021, 03:03 AM
Last Post: tester_V
  Simple Tic Tac Toe but I'm confused Izith 1 2,152 Sep-26-2020, 04:42 PM
Last Post: Larz60+
  I am really confused with this error. Runar 3 2,926 Sep-14-2020, 09:27 AM
Last Post: buran
  Dazed and confused... RodNintendeaux 10 7,388 May-28-2017, 01:32 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

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