Code Monkey home page Code Monkey logo

Comments (11)

jeafke avatar jeafke commented on May 11, 2024

edit
#for url in google.search(self.searchString, num=30, stop=1): for url in googlesearch.search(self.searchString, num=30, stop=1):

from iptv.

SlaSerX avatar SlaSerX commented on May 11, 2024

Thx i will try now

from iptv.

SlaSerX avatar SlaSerX commented on May 11, 2024

Fetching URLs plase wait...
Traceback (most recent call last):
File "./iptv.py", line 39, in
cr.search_links()
File "/root/l33t/IPTV/iptv/Crawler.py", line 62, in search_links
for url in googlesearch.search(self.searchString, num=30, stop=1):
NameError: global name 'googlesearch' is not defined

from iptv.

SlaSerX avatar SlaSerX commented on May 11, 2024

where need to be defined ?

from iptv.

SlaSerX avatar SlaSerX commented on May 11, 2024

Done i fix it just need to add import googlesearch

Thx for supp

from iptv.

erotavlasme avatar erotavlasme commented on May 11, 2024

Hi,
I have the same problem as you. Your solution does not work for me. I'm using python 3.5.2.
Thank you

from iptv.

SlaSerX avatar SlaSerX commented on May 11, 2024

from iptv.

erotavlasme avatar erotavlasme commented on May 11, 2024

After that I imported googlesearch and google on Crawler.py I got:
Please select an option: 1
Fetching URLs plase wait...
Traceback (most recent call last):
File "iptv.py", line 39, in
cr.search_links()
File "/home/user/Desktop/IPTV-master/iptv/Crawler.py", line 63, in search_links
for url in googlesearch.search(self.searchString, num=30, stop=1):
AttributeError: module 'googlesearch' has no attribute 'search'

from iptv.

SlaSerX avatar SlaSerX commented on May 11, 2024

Sure u load new module ?

from iptv.

erotavlasme avatar erotavlasme commented on May 11, 2024

Yes, these are the first rows of Crawler.py
import urllib
import google
import googlesearch
import time
import pyprind
import os
import random
from urllib.parse import urlparse

from iptv.

SlaSerX avatar SlaSerX commented on May 11, 2024

try run script with python2 not with python3

from iptv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.