Set Names and Tags from API

  • Created

In this very short article we are going to show you how to name your profiles with names of your choosing, this can be excellent as naming your profiles in Kameleo provides several advantages that can significantly improve your experience and efficiency when using the platform. Furthermore, we will also explain how to use tags to categorize and organize your items for easier retrieval and organization. Here are some of the key points to consider:

  • Enhanced Organization: Named profiles help you keep track of different personas or configurations, making it easier to find and manage them without confusion.

  • Better Management: Named profiles allow for better categorization based on their specific uses, such as work, personal, testing, or social media, making it easier to manage various online activities.

To learn more about setting names and how they translate in the Import/Export process of profiles, we highly recommend that you read the following article:

Below you can find the examples for Javascript and Python:

Examples for setting the Names

  • const createProfileRequest = BuilderForCreateProfile
      .forBaseProfile(chromeBaseProfileList[0].id)
      .setRecommendedDefaults()
      .setName('ScrapingProfile1')
      .build();
    const profile = await client.createProfile({ body: createProfileRequest });
  • create_profile_request = BuilderForCreateProfile \
      .for_base_profile(base_profiles[0].id) \
      .set_recommended_defaults() \
      .set_name('ScrapingProfile1') \
      .build()
    profile = client.create_profile(body=create_profile_request)

Examples for setting the Tags

  • const createProfileRequest = BuilderForCreateProfile
      .forBaseProfile(chromeBaseProfileList[0].id)
      .setRecommendedDefaults()
      .setTags(['scraping', 'automation'])
      .build();
    const profile = await client.createProfile({ body: createProfileRequest });
  • create_profile_request = BuilderForCreateProfile \
      .for_base_profile(base_profiles[0].id) \
      .set_recommended_defaults() \
      .set_tags(['scraping', 'automation']) \
      .build()
    profile = client.create_profile(body=create_profile_request)

For your convenience, this functionality is provided by the Python Builder and JavaScript Builder for Profile Creation in the Local API Clients.

Was this article helpful?

0 out of 0 found this helpful