Comments (5)
This look like you are unable to open a connection with the website. There is nothing wrong with the Python script.
Can you access the website through your browser? Did you try accessing with VPN or proxy?
from pornhub-api.
This look like you are unable to open a connection with the website. There is nothing wrong with the Python script.
Can you access the website through your browser? Did you try accessing with VPN or proxy?
yeah I am able to use it after retrying for 2-3 times. I understand why the issue persists.
I had another doubt in it's usage how can we use proxy and keywords in client together ?
from pornhub-api.
Also can you help me in pointing out from where can I get a valid proxy and port to feed into client ?
from pornhub-api.
You should be able to do it like this:
client = pornhub.PornHub("5.135.164.72", 3128, keywords)
Or like this, to be more precise:
client = pornhub.PornHub(ProxyIP="5.135.164.72", ProxyPort=3128, keywords=["word1", "word2"])
Be careful, proxy IP and port are stated here only for example and do not represent a real server. You have to find yourself a real proxy server and use its settings. Simple Google search like free proxy servers
can lead you to this website https://fossbytes.com/free-proxy-list/
I do not use proxy servers much, so I won't be much of a help, but I hope you find a working one.
from pornhub-api.
thankyou so much.......it is a kind request to update readme to include parameters that can be passed in it.
from pornhub-api.
Related Issues (20)
- getPhotos doesn't work, requests.exceptions.ConnectionError HOT 2
- getVideos attribute don't work? HOT 2
- Can't we use sort_by parameter HOT 2
- getVideos() got an unexpected keyword argument 'full_data' HOT 2
- getVideo method seems absent HOT 1
- demo code error (pip installing the wrong version) HOT 10
- getVideo() giving "***Video not available in your country***" despite IP not being in a restricted region HOT 8
- _scrapLiVideos() in getVideos() raise AttributeError, line 80 soup_data.find("div", class_="sectionWrapper") returns None HOT 7
- [Error Page Not Found] occurs when search keys' length in utf-8 bytes exceeds 100 (>= 100) HOT 1
- Expecting value: line 1 column 1 (char 0) when calling getVideo() print(video['accurate_views']) HOT 4
- Endless video download HOT 1
- @@ -0,0 +1,11 @@ +# -*- coding: utf-8 -*- + +from scrapy import Item, Field +class PornVideoItem(Item): + video_title = Field() + image_url = Field() + video_duration = Field() + quality_480p = Field() + video_views = Field() + video_rating = Field() + link_url = Field() \ No newline at end of file HOT 1
- Comments HOT 1
- GetVideos Module Has an Error
- GetVideos Module Has an Error HOT 1
- How Photos class work? HOT 1
- Make package install-able with pip HOT 6
- Script doesn't work anymore HOT 3
- getStars HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pornhub-api.