Find Jobs
Hire Freelancers

Pass 403 forbidden error for instagram automation with python

$10-30 USD

Closed
Posted over 1 year ago

$10-30 USD

Paid on delivery
Hi, I have a python code which makes automatic posts to instagram. For this code to work, I have to provide session id and csrf token. Previously, I was using below code to get that. Now, I get 403 forbidden error. I tried many ways, including Node, Selenium, etc. but couldn't solve this problem. I am using a local proxifier by the way. I was also using a proxifier previously. I need someone who will help me to pass this problem. def main_get_csrf_token(): link = '[login to view URL]' login_url = '[login to view URL]' time = int([login to view URL]().timestamp()) payload = { 'username': INSTAGRAM_USERNAME, 'enc_password': f'#PWD_INSTAGRAM_BROWSER:0:{time}:{INSTAGRAM_PASSWORD}', 'queryParams': {}, 'force': 'False', 'optIntoOneTap': 'False', 'two_step_verificator': 'True', } login_header = { "User-Agent": "Chrome/77.0.3865.120", #"User-Agent": "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36", "X-Requested-With": "XMLHttpRequest", "Referer": "[login to view URL]", #"x-csrftoken": csrf } login_response = [login to view URL](login_url, data=payload, headers=login_header) json_data = [login to view URL]([login to view URL]) if json_data["authenticated"]: print("login successful") cookies = [login to view URL] cookie_jar = cookies.get_dict() csrf_token = cookie_jar['csrftoken'] print("csrf_token: ", csrf_token) session_id = cookie_jar['sessionid'] print("session_id: ", session_id) else: print("login failed ", [login to view URL])
Project ID: 35275013

About the project

8 proposals
Remote project
Active 1 yr ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
8 freelancers are bidding on average $20 USD for this job
User Avatar
Hello, Greetings Ferda S., Good afternoon! I am an expert web developer with skills including Linux, Web Scraping, Software Architecture, Python and PHP. "login failed " Please contact me to discuss more regarding this project. Appreciate your prompt response
$25 USD in 1 day
5.0 (39 reviews)
6.1
6.1
User Avatar
Hey! I am skilled Python engineer with skills including Linux, PHP, Software Architecture, Web Scraping and Python. - web scraping, data mining, data extraction, data transformation, - writing scripts and utilities, - image / file downloading. - scraping info from websites into SQL-like DB or any other format (txt, CSV, EXCEL, JSON etc). - file transformation. Web scraping technologies: - Selenium Webdriver - create autotest, scraping information from different websites - Scrapy - a gathering of information variety of websites like amazon, airbnb, etc (python) - Xpath - analysis and using XPath to navigate in an XML document - beautiful soup + requests - collecting information from the given websites. Skillset: - Java – advances (new tools implementation, web applications creation, bug fixing, code review) - JavaScript – basic (new script creation, support existing solution). - Groovy – basic (creation simple CRUD web application using Grails Framework). - Python (knowledge: PyGame, Django, scrapy, beautiful soup) - Spring (Core, MVC, Security, JPA) – new application creation, support existing web applications. - Oracle SQL – creating new scripts, support and tuning existing scripts. - HTML + CSS – simple page creation / support existing Please send a message to discuss more regarding this project. Thanks
$30 USD in 4 days
4.4 (56 reviews)
6.7
6.7
User Avatar
Hello, I examined your project description, and I confirm I can handle those tasks perfectly, as I am an expert in PHP, Python, Linux, Web Scraping, Software Architecture. I am prepared to handle projects requiring Python, Web Scraping skills. Lets connect in chat so that we discuss further. Zied B.
$10 USD in 7 days
4.5 (59 reviews)
5.3
5.3
User Avatar
Greetings, I have gone through your project description. I find myself as a perfect fit for this job. I am working as a Python Developer from last 2 year. Some of my expertise is in the fields: 1. Web Scraping/Web Automation - Selenium, Scrapy, Requests, Beautifulsoup 2. AI and ML 3. Web Designing 4. Wordpress 5. Data Science 6. C/C++ 7. SQL I will be available 24/7 to assist you during the project. So lets discuss more about it over chat. Yours Faithfully, Jaibhan Singh Gaur,
$20 USD in 3 days
5.0 (49 reviews)
4.8
4.8
User Avatar
⭐⭐⭐I can start now and I am confident that I can do it ⭐⭐⭐ I have 10 years of experience in this field and I have these skills (PHP, Linux, Web Scraping, Software Architectureand Python) so just check my reviews and please have a look on my profile. let us discuss in chat
$20 USD in 5 days
4.8 (11 reviews)
3.8
3.8
User Avatar
I will fix error. I have all skills required for the task. Please let me know when I can start. Regards, Anoop
$15 USD in 7 days
4.9 (5 reviews)
3.3
3.3
User Avatar
I have 5+ years experience in python programming language and 3+ years experience in django, I have been mentoring cyber security in Uzbekistan for 3+ years I think I can make you work
$20 USD in 7 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello Mate!Greetings Ferda S., Good morning! I’ve carefully checked your requirements and really interested in this job. I’m offering best quality and highest performance at lowest price. I can complete your project on time and your will experience great satisfaction with me. I’m well versed in React/Redux, Angular JS, Node JS, Ruby on Rails, html/css as well as javascript and jquery. I have rich experienced in PHP, Python, Linux, Web Scraping and Software Architecture. For more information about me, please refer to my portfolios. I’m ready to discuss your project and start immediately. "login failed " Looking forward to hearing you back and discussing all details.. Eager to hear your feedback
$21 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of TURKEY
Ankara, Turkey
5.0
35
Payment method verified
Member since Feb 26, 2016

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.