A package to scrape Google Forms and extract questions.
Project description
Form Scraper
A Python library to scrape public Google Forms and extract questions and their properties (type, required, options, etc.).
Installation
pip install form-scrapper
or
git clone https://github.com/yannickRafael/form_scrapper.git
cd form_scraper
pip -r install requirements.txt
Features
- Extract all questions from a public Google Form
- Detect question type (text, multiple choice, checkboxes, etc.)
- Identify required fields
- Retrieve options for multiple choice questions
Example Usage
from form_scrapper import FormScrapper
url = 'https://google.forms.url'
questions = FormScrapper.fetch_from_url(url)
Output Example
{
'672397008': {
'Question ID': 672397008,
'Question Text': 'Name',
'Question Type':
'Short answer',
'Is Required': True,
'Options': []
},
371108883: {
'Question ID': 371108883,
'Question Text': 'Phone Number (optional)',
'Question Type': 'Short answer',
'Is Required': False,
'Options': []
}
}
Limitations
- Only works with public Google Forms (no login required)
- Not guaranteed to work if Google changes the internal form structure
- Does not submit forms — only reads them
Contributing
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
License
This project is licensed under the MIT License – see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file form_scrapper-0.2.0.tar.gz.
File metadata
- Download URL: form_scrapper-0.2.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a23278fa26552582dd2f9cf851d4bb97171f97225afb2cfbc1b51249f61206b8
|
|
| MD5 |
2542946c8efd46bfeff256e730a9812c
|
|
| BLAKE2b-256 |
25ebf88f82b41e6994872738d25ad24430e00d82a250bd07dc87ae2b4100606b
|
File details
Details for the file form_scrapper-0.2.0-py3-none-any.whl.
File metadata
- Download URL: form_scrapper-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e393d3d516d5fc9684c73a19a56417ba8204071f29c9c3a6aa8ec92852dc8551
|
|
| MD5 |
217aaf7d03c1caf27d4e4d2a58f9dba5
|
|
| BLAKE2b-256 |
65d67d202d9aae15f71fa07d54e306266b54c085b298a0ff9790501b0e665ca2
|