Skip to main content

File: __init__.py

Project description

SquarespaceUploader

Takes data from a json file (formatted as indicated) and uploads the item to Squarespace

Language: Python 3.7

This program, as the description states, takes a specifically formatted python file database and uploads each entry to the Squarespace interface through the selenium library with Python. As of right now, its most useful purpose is defining the interface for entering data on Squarespace, and using that to input data. An example python file for the data is included as items.json

This program has been designed to do the following:

  • Take the data from the json and use it directly
  • Waits for inputs to appear or dialogs to dissappear before entering data
  • Has the capability to upload text and images stored on the local machine
  • Puts functionality for managing orders, inventory, and item updates into an easy to use GUI interface that can be used outside of the browser

Current Features:

  • Updates existing items if and only if new information is found
  • Adds new items if and only if they are not already in the database
  • Moves items onto the store page/into storage based on the season (since this is meant for a clothing store)
  • Item capability: Nearly all Men's clothing types, including pants, shirts, blazers, shorts, etc.

Usage:

  1. To start, download this repository, and make sure that your proper login information and store page(s) information is put into information.py
  2. Next, create your database file for accessing, see example_items.json for formatting details
  3. Finally, if you need to add new fields, modify the interface.py file between the necessary comments to rename the fields to what you need them to be

Note: This program was originally designed to upload clothing items, so some fields may not be applicable to your item(s) or store(s). I've documented the code as well as I can, and have put small notes where personal modification would be necessary if your store is not currently compatible with this layout. This includes the automated email sending, see companyemail.txt for the base template I used and make changes as needed. If you have any questions or would like some better explanation/assistance on the process of adapting this program to your store, feel free to contact me either through GitHub or through my email.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

squp-0.1.7.tar.gz (39.9 MB view hashes)

Uploaded Source

Built Distribution

squp-0.1.7-py3-none-any.whl (20.7 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page