Back to template gallery

Empty Python project

Empty template with basic structure for the Actor with Apify SDK that allows you to easily add your own functionality.

Language

python

Use cases

Web scraping

# Apify SDK - toolkit for building Apify Actors (Read more at https://docs.apify.com/sdk/python)
from apify import Actor
# Beautiful Soup - library for pulling data out of HTML and XML files (Read more at https://www.crummy.com/software/BeautifulSoup/bs4/doc/)
# from bs4 import BeautifulSoup

async def main():
    async with Actor:
        print('Hello from the Actor!')
        """
        Actor code
        """

Empty Python template

Start a new web scraping project quickly and easily in Python with our empty project template. It provides a basic structure for the Actor with Apify SDK and allows you to easily add your own functionality.

Included features

  • Apify SDK for Python - a toolkit for building Actors and scrapers in Python
  • Beautiful Soup - library for pulling data out of HTML and XML files

How it works

Insert your own code to async with Actor: block. You can use the Apify SDK, Beautiful Soup or any other Python library.

Resources

A short guide on how to build web scrapers using code templates: web scraper template

Already have a solution in mind?

Sign up for a free Apify account and deploy your code to the platform in just a few minutes! If you want a head start without coding it yourself, browse our Store of existing solutions.