Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

TypeError: a bytes-like object is required, not 'int' #21

Open
sandwich-destroyer opened this issue Apr 14, 2021 · 2 comments
Open

TypeError: a bytes-like object is required, not 'int' #21

sandwich-destroyer opened this issue Apr 14, 2021 · 2 comments

Comments

@sandwich-destroyer
Copy link

sandwich-destroyer commented Apr 14, 2021

Version: 1.1 FIXED - March 27, 2021
Author: Vincent Yiu @vysecurity

[*] Enter search Keywords (use quotes for more precise results)
company

[*] Enter filename for output (exclude file extension)
company

[*] Filter by Company? (Y/N): 
Y

[*] Specify a Company ID (Provide ID or leave blank to automate): 


[*] Enter e-mail domain suffix (eg. contoso.com): 
company.com

[*] Select a prefix for e-mail generation (auto,full,firstlast,firstmlast,flast,firstl,first.last,fmlast,lastfirst,first): 
flast


[*] Obtained new session
[Notice] Found company ID: 1337

[*] Using company ID: 1337
https://www.linkedin.com/voyager/api/search/cluster?count=40&guides=List(v->PEOPLE,facetCurrentCompany->1337)&origin=OTHER&q=guided&start=0
[*] 794 Results Found
[*] Fetching 20 Pages

[*] Fetching page 0 with 40 results
[*] No picture found for This Dude, Head of Information Security
Traceback (most recent call last):
  File "LinkedInt.py", line 431, in <module>
    get_search()
  File "LinkedInt.py", line 314, in get_search
    f.writelines(newcsv.encode())
TypeError: a bytes-like object is required, not 'int'

@ipSlav
Copy link

ipSlav commented Apr 19, 2021

I've solved the issue by doing a basic modification on line 314 from f.writelines(newcsv.encode()) to f.write(newcsv.encode())

@vysecurity
Copy link
Owner

Great! I'll take a look. Thanks for the feedback.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants